webpack打包时报错:Invalid configuration object.以及 Error: Can‘t resolve ‘babel-loader‘
解决办法:在webpack.config.js 里面添加或者修改 mode为development由于我事先没有安装了babel-loader,所以后面又报错:ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in 'C:\00new\webpack-demo'解决办法:打开cmd命令行,npm install babel-loader --save 安装即可我的还需要在Terminal安装...
原创
2020-09-11 11:21:43 ·
3511 阅读 ·
0 评论