Module build failed (from ./node_modules/babel-loader/lib/index.js) babel-loader

problem solving:

npm install -D babel-loader @babel/core @babel/preset-env webpack

Reference links:


https://github.com/babel/babel/issues/8599

Read More: