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:
- Webpack — module build failed: error: the node API for ‘Babel’ has been moved to Babel core
- Module build failed (from ./node_modules/babel-loader/lib/index.js) babel-loader
- Elememt UI introduces components on demand to report errors
- Gulp failed to run
- Error: Cannot find module ‘@babel/core’
- UnhandledPromiseRejectionWarning Error: Can‘t set headers after they are sent (How to Fix)
- Webpack error module build failed: typeerror: fileSystem.statSync is not a function
- Module build failed: error:couldn’t find preset “env” relative to directory
- Webpack multi version incompatibility error
- Module build failed Error Plugin/Preset files are not allowed to export objects, only functions (How to Fix)
- Error in created hook: “referenceerror:” promise “undefined” Vue cli project Google is right, ie reported an error, “promise” undefined“
- Module build failed: SyntaxError: Unexpected token
- Syntax error in Vue ie10 browser
- About the solution of error: cannot find module ‘@ Babel / core’
- Error in Babel configuration of webpack
- JS error: require is not defined
- package.json And package- clock.json The difference between
- ERROR in static/js/app.xxxxxxx.js from UglifyJs Unexpected token: operator (>)
- Solution: ‘import’ and ‘export’ may appear only with ‘sourcetype: module’
- [Solved] ERROR Failed to compile with 3 errors These dependencies were not found: * pdfjs-dist/es5/buil