webpack打包时babel-core提示版本错误

webpack打包时babel-core提示版本错误

在配置webpack.config.js自动打包的时候,出现Error: Cannot find module '@babel/core’错误
由于babel-loader的版本不一样,版本到了8.x导致自动打包时提示
Cannot find module '@babel/core’

之后安装[email protected],回退到7.x版本,打包成功

猜你喜欢

转载自blog.csdn.net/weixin_42821179/article/details/86149611