question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in production build: Unexpected token punc «(», expected punc «:»

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Ivan-Feofanovcommented, Feb 7, 2017

I’m sorry. After update to latest template version ploblem was gone. Thank you for help!

0reactions
limichangecommented, Feb 9, 2017

@rlog Are you use the latest webpack template ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found