Error:

// webpack
Cannot find module '@babel/core'
解决办法一:
原因"babel-loader": "^8.0.0" 版本问题。
使用"babel-loader": "^7.1.5"即可解决该错误。

package.json

{
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5"
}
}

解决办法二:

安装@babel/core依赖

https://www.npmjs.com/package/@babel/core

npm install --save-dev @babel/core

在尝试第二种方法之后又报错:TypeError: Cannot read property 'bindings' of null

 

所以推荐用第一种方法

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2021-07-22
  • 2022-12-23
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2021-12-08
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案