ERROR Error: Rule can only have one resource source (provided resource and test + include + exclude) in {
[1] "exclude": [
- 先删掉
node_modules
和package-lock.json
- 手动在
package.json
的devDependencies
里添加"webpack": "^4.44.2"
- 重新安装全部依赖:
npm i
- 尝试编译,
npm run build
,发现问题解决