current position:Home>The project cannot run after webpack installation

The project cannot run after webpack installation

2022-06-24 09:07:50Secret Shura

Error: Rule can only have one resource source (provided resource and te
ude + exclude) in {
    
de": [
 [
oader": "E:\\ Small projects for self training \\myAntVue\\myvueant\\node_modules\\cache-
ist\\cjs.js",
ptions": {
    
"cacheDirectory": "E:\\ Small projects for self training \\myAntVue\\myvueant\\node_modul
e\\babel-loader",
"cacheIdentifier": "2019c639"
dent": "clonedRuleSet-38[0].rules[0].use[0]"
oader": "E:\\ Small projects for self training \\myAntVue\\myvueant\\node_modules\\babel-
ib\\index.js",
ptions": "undefined",
dent": "undefined"

// install Webpack The project will not run after installation
npm install --save-dev webpack

problem :Error: Rule can only have one resource source (provided resource and te
ude + exclude)

Cause analysis :
package.json in webpack Version conflict
Solution :
Delete webpack, Reinstall the previous version .
npm uninstall webpack

Again npm install [email protected]^4.0.0 --save-dev
 Insert picture description here

copyright notice
author[Secret Shura],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/175/202206240625104670.html

Random recommended