When newer versions of packages are installed instead of older ones in the package.json file, It throws compile errors related to configuration.
for Example in webpack.config.js
-1- new webpack.NoErrorsPlugin ( ) which should be changed to new webpack.NoEmitOnErrorsPlugin( )
-2- resolve.extensions
it does not accept empty String
resolve: {
extensions: [ '.js', '.jsx']
},
-3- module.loaders should be changed to module.rules i guess
-4- in loaders section it is no longer allowed to omit -loader so
loaders: ['react-hot-loader/webpack', 'babel-loader']
However after these changes there seems to be some compile errors which again is related to the configuration.
When newer versions of packages are installed instead of older ones in the package.json file, It throws compile errors related to configuration.
for Example in webpack.config.js
-1-
new webpack.NoErrorsPlugin ( )which should be changed tonew webpack.NoEmitOnErrorsPlugin( )-2-
resolve.extensionsit does not accept empty String
-3-
module.loadersshould be changed tomodule.rulesi guess-4- in
loaderssection it is no longer allowed to omit-loadersoloaders: ['react-hot-loader/webpack', 'babel-loader']However after these changes there seems to be some compile errors which again is related to the configuration.