you should install 'babel-loader@7'. || babel version
If you are Getting any error in compiling main.js or app.js or in Entry file of React App You have to Update Babel versions and dependency npm install -D babel-loader @babel/core @babel/preset-env webpack And change config file options: { presets: ['@babel/preset-env'] }