![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack
ccss__ddnn
这个作者很懒,什么都没留下…
展开
-
Module not found: Error: Can't resolve 'public/bundle.js' in 'webpack'的解决方案
Module not found: Error: Can't resolve 'public/bundle.js' in 'webpack'按照教程上面的命令:webpack app/main.js public/bundle.js报错如下:搜索资料发现这个是webpack版本的问题,改用命令即可webpack app/main.js -o public/bundle.js...原创 2019-10-09 14:45:03 · 964 阅读 · 0 评论 -
Cannot find module '@babel/core' babel-loader@8 requires Babel 7.x (the package '@babel/core').
在npm run server的时候,报错:Cannot find module '@babel/core' babel-loader@8 requires Babel 7.x (the package '@babel/core'). If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@...原创 2019-10-10 15:43:57 · 364 阅读 · 0 评论 -
Module not found: Error: Can't resolve 'react' in 'E:\webpack\webpack-sample-project\app'
在npm run server的时候,报错:ERROR in ./app/main.jsModule not found: Error: Can't resolve 'react' in 'E:\webpack\webpack-sample-project\app'@ ./app/main.js 3:13-29执行如下:npm install -g reactnpm insta...原创 2019-10-10 15:46:24 · 1756 阅读 · 0 评论 -
CleanWebpackPlugin is not a constructor错误的解决方法
执行npm run build报错:CleanWebpackPlugin is not a constructor修改如下:const { CleanWebpackPlugin } = require('clean-webpack-plugin');plugins: [new CleanWebpackPlugin()]...原创 2019-10-10 20:02:20 · 101 阅读 · 0 评论