Tag Archives: babel-core

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!

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:

webpak

ok, perfect!