How to Fix webpack Module build failed Error: The node API for ‘babel’ has been moved to babel-core

Red when webpack is 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,
download the dependency package again:

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

And to pack:

webpak

Ok, perfect!

Read More: