Error: Cannot find module 'babel-core'
来源:2-11 如何调试Webpack?如何配置VSCode调试?【调试篇】
佛门与网络
2021-01-02 13:17:45
老师,使用
node --inspect-brk ./node_modules/webpack/bin/webpack --inline --progress
调试之后,点击 inspect 打开调试窗口,运行完毕的时候,控制台报错
ERROR in ./src/index.js
Module build failed (from ./node_modules/_babel-loader@7.1.5@babel-loader/lib/index.js):
Error: Cannot find module 'babel-core'
感觉是版本问题
相关截图:
尝试过的解决方式:
重新安装@babel/core
安装babel-core
1回答
Brian
2021-01-05
你有没有代码github?依赖问题好解决啊!
从你执行命令的目录入手
检查 node_modules中的文件
重新安装node_modules
相似问题