}

Webpack Index Page 1

SOLVED -> Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead.

If you upgrade to webpack 4 and got the error "Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead.", try to add the new config section called optimization since on webpack 4 CommonsChunkPlugin was removed and it was replaced by optimization.splitChunks.