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 on commands dev and production

See original GitHub issue

Hello 😃

If i run commands by npm run dev or npm run production, then after some seconds i see this error in console:

ERROR  Failed to compile with 1 errors

 error

/js/app.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [./~/bootstrap/js/src/util.js:8,0][/js/app.js:81,19]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:28 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ghuachinscommented, Jul 18, 2017

@opmind I’d been using that solution: "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony" but now it doesn’t works for me. I found another solution: "uglify-js": "git://github.com/mishoo/UglifyJS2#harmony-v2.8.22" and then npm i or yarn install

1reaction
opmindcommented, Jun 18, 2017

I have solved same problem with import js files from src using #harmony version of ugifyjs: package.json: "uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony" and then npm i or yarn install and resolving node_modules folder with bootstrap in babel-loader section of webpack.config. https://stackoverflow.com/a/43893311

Read more comments on GitHub >

github_iconTop Results From Across the Web

node ace build --production, [ error ] "build" command not ...
node ace build --production, [ error ] "build" command not found error on Digital Ocean Apps.
Read more >
npm Warning: config production; Use --omit=dev Instead
I created an error log because of a different npm crash, ... --omit=dev by npm --omit=dev or check you version properly then run...
Read more >
Prisma Migrate in development and production
migrate dev is a development command and should never be used in a production environment. This command: Reruns the existing migration history in...
Read more >
Express Tutorial Part 7: Deploying to production
Set NODE_ENV to 'production'. We can remove stack traces in error pages by setting the NODE_ENV environment variable to production (it is set...
Read more >
Command Line Interface - webpack
webpack-cli offers a variety of commands to make working with webpack easier. ... Output the version number of webpack , webpack-cli and webpack-dev-server ......
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