Error on commands dev and production
See original GitHub issueHello 😃
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:
- Created 7 years ago
- Comments:28 (10 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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 thennpm i
oryarn install
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 thennpm i
oryarn install
and resolving node_modules folder with bootstrap in babel-loader section of webpack.config. https://stackoverflow.com/a/43893311