Open boas19910115 opened 5 years ago
Please, check if the file ẁebpack.producion.config.js
is in the root of your project
Please, check if the file
ẁebpack.producion.config.js
is in the root of your project
Yes. It exist in the root of my project. I set on hook in Jenkins.. When Jenkins run "npm run deploy" , the error make terminal stop running. Actually, despite of this error, files in the build dir are still available and running normally. So I change the command into "npm run deploy || true" to ignore the error. I just worry this error will possibly make some problem in the future.
Maybe Jenkins is needing a finalization command. Something like process.exit()
I'm getting the same error:
ERROR in bundle.js from UglifyJs
Unexpected token: name (Game) [bundle.js:3273,6]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! PhaserES6Webpack@1.0.0 deploy: webpack --config webpack.production.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the PhaserES6Webpack@1.0.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
It seems to be having trouble with "game" in Phaser.
Same error, please fix
My log:
PhaserES6Webpack@1.2.1 dev /Users/CarlosMartinez/UNAL/UN_Pokemon/phaser-es6-webpack webpack
[webpack-cli] Failed to load '/Users/CarlosMartinez/UNAL/UN_Pokemon/phaser-es6-webpack/webpack.config.js' config
[webpack-cli] TypeError: webpack.optimize.CommonsChunkPlugin is not a constructor
at Object.webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the PhaserES6Webpack@1.2.1 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/CarlosMartinez/.npm/_logs/2021-06-18T17_03_59_131Z-debug.log
- 13 verbose stack Error: PhaserES6Webpack@1.2.1 deploy:
webpack --config webpack.production.config.js
webpack --config webpack.production.config.js