Open Nikkolast88 opened 2 years ago
The error message is very self-explanatory but I know it still doesn't work. NPM might be to blame here, I was having a similar issue today. Sometimes dependencies cause conflicts and you inadvertently install versions of libraries you don't want. How to fix them?
Set the library version exactly in package.json
if it's a direct dependency of your project.
If not, then you have to set resolutions
at the top level of your package.json
, something like this
"resolutions": {
"webpack": "4.46.0"
},
This will ensure that all your dependencies stick to that version of webpack. Then you do the normal procedure, remove node_modules and package-lock.json
and install again using npm i
.
OP doesn't probably need it now but this might help someone else.
vue:3.2.20 vue-cli:5.0.0-beta.6 vue-svg-loader:0.17.0-beta.2
vue.config.js chainWebpack: (config) => { const svgRule = config.module.rule('svg');
},