-
Notifications
You must be signed in to change notification settings - Fork 260
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
ERROR in bundle.js from UglifyJs Unexpected token: punc (}) [bundle.js:3358,0] #17
Comments
Hello.
Try cloning the finished repo and working backwards from there.
Cheers
…________________________________
From: sally7682 <notifications@github.com>
Sent: May 30, 2019 4:17 PM
To: danielstern/isomorphic-react
Cc: Subscribed
Subject: [danielstern/isomorphic-react] ERROR in bundle.js from UglifyJs Unexpected token: punc (}) [bundle.js:3358,0] (#17)
Hi,
I am getting the following error when running the
$ npm start
ERROR in bundle.js from UglifyJs
Unexpected token: punc (}) [bundle.js:3358,0]
Both $ npm install and
$ npm run postinstall worked perfectly.
Any help greatly appreciated. Am new to React and have fallen at the first hurdle.
Regards
Sally
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#17?email_source=notifications&email_token=ABASA6C6CBAUBPUT5HBT7SLPYAY47A5CNFSM4HRKP67KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWZ4PPA>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABASA6GZM7VU5AX4XUVCQXDPYAY47ANCNFSM4HRKP67A>.
|
Same issue here. Here are my steps to replicate:
System: Mac OS Log:
I've cleared |
Hi Conor, Yes my problem exactly. I am running on windows 10. I also went through the same steps as you. Having hunted arround a little online I did find some info indicating that there is a compatability issue with ES6 and UglyfyJS. I have tried a couple of the suggestions on this post and none seem to work including adding Please do let me know if you find the solution. I will pass it on as well of I get to the bottom of this. Kind regards Sally Hash: a712d1edd7c25c19e2e8 ERROR in bundle.js from UglifyJs npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: npm ERR! A complete log of this run can be found in: |
Hi all, I'm getting the same issue after doing a fresh clone and then running "npm start". This in turn runs "npm run start-prod". I have found that if I run "npm run start-dev" it works correctly, and I'm then able to browse the application on localhost:3000. Looks like it's the call to Hopefully this helps to further diagnose the problem. Note, I'm using npm v6.9.0 and node v10.16.0 on Windows 10. Regards |
Pete, Thanks for taking the time to respond. |
Hi Sally, no problem. I did manage to incorporate Uglification (is that a word?)... I ended up installing the uglifyjs-webpack-plugin (npm install --save-dev uglifyjs-webpack-plugin@v1.3.0). I then updated the production webpack config (webpack.config.prod.babel.js) to use this different plugin: new UglifyJSPlugion(). My config is shown below. Give this a try if you want and hopefully it helps. Pete
|
This is the new big dog now ! |
Hi,
I am getting the following error when running the
$ npm start
ERROR in bundle.js from UglifyJs
Unexpected token: punc (}) [bundle.js:3358,0]
Both $ npm install and
$ npm run postinstall worked perfectly.
Any help greatly appreciated. Am new to React and have fallen at the first hurdle.
Regards
Sally
The text was updated successfully, but these errors were encountered: