Error:
// webpack
Cannot find module ‘@babel/core’
Solution 1:
Cause of “babel-loader”: “^8.0.0” version problem.
Use “babel-loader”: “^7.1.5” to fix the error.
package.json
{
“devDependencies”: {
“babel-core”: “^6.26.3”,
“babel-loader”: “^7.1.5”
}
}
Solution 2:
Install @babel/core dependency
https://www.npmjs.com/package/@babel/core
npm install –save-dev @babel/core
After trying the second method and reporting an error: TypeError: Cannot read property ‘bindings’ of null
So the first method is recommended
Similar Posts:
- Cannot find module ‘@babel/core’ [How to Solve]
- vue ‘Couldn’t find preset “es2015” relative to directory’
- [Solved] NPM Run Project Error: Cannot find module ‘@babel/compat-data/corejs3-shipped-proposals’
- [Solved] Vue installation Babel dependency error
- Nuxt module build failed error report
- WebPack Task Runner
- [Solved] Webpack4 Package Error: regeneratorRuntime is not defined
- [Solved] app crashed – waiting for file changes before starting…
- Error in xxx.js from uglifyjs after elementui upgrade [How to Solve]
- [Solved] Vue/cli install element error: Error: cannot find module ‘Babel plugin component’