create-react-app
initializes a repository where babel-loader is installed as an older version than needed.
LOG:
There
Getting the same issue but given an hour on it get the solution
When we run npm start
then you got this kind of an error that is version related issues for this issue.
Go to node_modules folder:
Project->node_modules->react-scripts->package.json
check the package.json file
there you got : "babel-loader": "8.0.4"
first remove : babel-loader folder for Project->node_modules->babel-loader
and then run npm i babel-loader@8.0.4
(it is depend on your version you can change it like : npm i babel-loader@8.0.5) after that may be you got webpack issue then follow same thing remvoe webpack from "Project->node_modules->webpack
"
and reinstall npm i webpack@4.19.1
4.19.1* webpack's version it may be change..