Optimization Error [main.12345...js] Expected identifier but found "=" #10485
Unanswered
papagei-ma
asked this question in
Q&A
Replies: 2 comments
-
|
@papagei-ma I'm moving this to discussions |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@papagei-ma did you end up working out what the issue was here? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Are you certain it's a bug?
Is the issue caused by a plugin?
Are you using the latest version?
Is there an existing issue for this?
Issue description
When trying to upgrade to 2.71.0, the issue is there.
I have an ionic on angular project, and use serverless to manage (AWS (appsync, graphql ..) related services. And when I tried to use the current version from (serverless package) I started getting this error.
Error: Optimization error [main.16fb586baab212b0.js]: Error: Transform failed with 1 error:
main.16fb586baab212b0.js:13285:5: ERROR: Expected identifier but found "="
at failureErrorWithLog (/project/node_modules/esbuild/lib/main.js:1493:15)
......
......
Service configuration (serverless.yml) content
I dont think its related to the configuration, because the bug is at build time.Command name and used flags
ionic build ( which will run ng build)
Command output
Error: Optimization error [main.16fb586baab212b0.js]: Error: Transform failed with 1 error: main.16fb586baab212b0.js:13285:5: ERROR: Expected identifier but found "="Environment information
Serverless: Running "serverless" installed locally (in service node_modules) Framework Core: 2.71.0 (local) Plugin: 5.5.3 SDK: 4.3.0 Components: 3.18.1Beta Was this translation helpful? Give feedback.
All reactions