INFO Starting development server...
ERROR Error: Rule can only have one resource source (provided resource and test + include + exclude) in {
"exclude": [
null
],
"use": [
{
"loader": "E:\\DXSX\\front\\num6-知识库\\knowledge-base\\node_modules\\cache-loader\\dist\\cjs.js",
"options": {
"cacheDirectory": "E:\\DXSX\\front\\num6-知识库\\knowledge-base\\node_modules\\.cache\\babel-loader",
"cacheIdentifier": "7f6c4578"
},
"ident": "clonedRuleSet-38[0].rules[0].use[0]"
},
{
"loader": "E:\\DXSX\\front\\num6-知识库\\knowledge-base\\node_modules\\babel-loader\\lib\\index.js",
"options": "undefined",
"ident": "undefined"
}
]
}
Error: Rule can only have one resource source (provided resource and test + include + exclude) in {
"exclude": [
null
],
"use": [
{
"loader": "E:\\DXSX\\front\\num6-知识库\\knowledge-base\\node_modules\\cache-loader\\dist\\cjs.js",
"options": {
"cacheDirectory": "E:\\DXSX\\front\\num6-知识库\\knowledge-base\\node_modules\\.cache\\babel-loader",
"cacheIdentifier": "7f6c4578"
},
"ident": "clonedRuleSet-38[0].rules[0].use[0]"
},
{
"loader": "E:\\DXSX\\front\\num6-知识库\\knowledge-base\\node_modules\\babel-loader\\lib\\index.js",
"options": "undefined",
"ident": "undefined"
}
]
}
原因:
package.json中webpack版本冲突问题。
解决:
//卸载
npm uninstall webpack
npm install webpack@^4.0.0 --save-dev