Error in production build: Unexpected token punc «(», expected punc «:»
See original GitHub issueI try to build production version but UglifyJS throw this error:
ERROR in static/js/app.b786c2a0343b5284c845.js from UglifyJs
SyntaxError: Unexpected token punc «(», expected punc «:» [static/js/app.b786c2a0343b5284c845.js:84,6]
It looks like production script doesn’t transpile the code.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
expected punc when creating chunk from UglifyJS - Stack ...
Unexpected token punc «(», expected punc «:». The error is stating that it is expecting a colon rather than an opening parenthesis, ...
Read more >Unexpected token punc «,», expected punc «:» #1653 - GitHub
An example of JavaScript output produced and/or the error or warning. ... The problem is that code like this is inside a lot...
Read more >Unexpected token punc «(», expected punc «:» - Laracasts
Hey,. I run npm run watch It works fine, when I execute npm run production the following error shows up. Copy Code Unexpected...
Read more >UglifyJs Unexpected token punc «(», expected punc «:»
This solved a similar problem for me as well. I had a similar error with UglifyJS after adding the latest FeathersJS client.
Read more >terser minification error (SyntaxError:Unexpected token: punc ...
$ meteor run --extra-packages bundle-visualizer --production ... => Errors prevented startup: While minifying app code: packages/minifyStdJS/ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m sorry. After update to latest template version ploblem was gone. Thank you for help!
@rlog Are you use the latest webpack template ?