-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant build due to "Optional chaining cannot appear in left-hand side" #2259
Comments
Just adding context. I asked the rollup community about the same problem and they mentioned an I am working on a reproduction of the issue. A direct solution would be nice however I am more than happy to read any debugging advice also. This error has be exhausting. Thank you! |
Printing the |
I believe the problem is caused by the below and since you are using casting you are also bypassing Typescript error reporting. (this.schema?.fields as Field[])[e.previousContainer.data.index] = e.container.data.item;
(this.schema?.fields as Field[])[e.container.data.index] = e.previousContainer.data.item; |
We included the comment described below. That told us the file that was being parsed before the throw. if I wasn't so happy that this is finally solved Id say something like... Why wasn't the error source printed in the first place!?! 😓
was
With comment
Code that caused the error
|
This issue has been automatically locked due to inactivity. |
Type of Issue
Description
After running
ng build my-publishable-module
I get an error durring buildIt looks like
@rollup@2.68.0
(/ng-packagr/node_modules/rollup/
) throws this error.There is a lot of chatter about this bug on rollup. but i have not found a solution. rollup/rollup#3582
I tried all the suggestions with rollup and updating it within my project but no luck.
Version Information
Please include all version numbers that might be relevant, e.g. third-party libraries
The text was updated successfully, but these errors were encountered: