Webpack — module build failed: error: the node API for ‘Babel’ has been moved to Babel core

webpack is red when packaged:

Module build failed: Error: The node API for 'babel' has been moved to babel-core

there is nothing available on the web,
so delete the entire node_modules folder,
to download the dependency package again:

npm init;
cnpm install --save babel-loader babel-preset-es2015 babel-preset-react babel-core

and then pack:


ok, perfect!

Read More: