Home

Issue: 3042

Webpack.optimize.CommonsChunkPlugin has been removed, please use config .optimization.splitChunks instead.

[issue link]
nuxt build
      01 
      01 2018-03-16T18:01:23.566Z nuxt:build Building...
      01 2018-03-16T18:01:23.599Z nuxt:axios BaseURL: http://localhost:3000/ (Browser: http://localhost:3000/)
      01 2018-03-16T18:01:23.610Z nuxt:build App root: /var/stage/trading-ui/deploy/releases/20180316175938
      01 2018-03-16T18:01:23.611Z nuxt:build Generating /var/stage/trading-ui/deploy/releases/20180316175938/.nuxt files...
      01 2018-03-16T18:01:23.712Z nuxt:build Generating files...
      01 2018-03-16T18:01:23.739Z nuxt:build Generating routes...
      01 2018-03-16T18:01:23.813Z nuxt:build Building files...
      01 
      01  ERROR 
      01 
      01   Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config  .optimization.splitChunks instead.
      01   
      01   - webpack.js:162 Object.get [as CommonsChunkPlugin]
      01     [20180316175938]/[webpack]/lib/webpack.js:162:10
      01   
      01   - client.config.js:242 Builder.commonChunksPlugin
      01     [20180316175938]/[nuxt]/lib/builder/webpack/client.config.js:242:26
      01   
      01   - client.config.js:42 Builder.webpackClientConfig
      01     [20180316175938]/[nuxt]/lib/builder/webpack/client.config.js:42:22
      01   
      01   - builder.js:487 Builder.webpackBuild
      01     [20180316175938]/[nuxt]/lib/builder/builder.js:487:46
      01   
      01   - builder.js:168 Builder.build
      01     [20180316175938]/[nuxt]/lib/builder/builder.js:168:16
      01   
      01   
      01 
      01 npm ERR!
      01  code
      01  ELIFECYCLE
      01 npm
      01  
      01 ERR! 
      01 errno 1
      01 npm 
      01 ERR!
      01  trading-edu-ui@0.0.1 build: `nuxt build`
      01 npm
      01  ERR!
      01  Exit status 1
      01 npm
      01  
      01 ERR!
      01  
      01 npm
      01  
      01 ERR!
      01  Failed at the trading-edu-ui@0.0.1 build script.
      01 npm
      01  
      01 ERR! This is probably not a problem with npm. There is likely additional logging output above.
      01 
      01 npm 
      01 ERR!
      01  A complete log of this run can be found in:
      01 npm
      01  ERR!
      01      /home/deploy/.npm/_logs/2018-03-16T18_01_25_001Z-debug.log
This question is available on Nuxt.js community (#c2636)