-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SVGO to fix deprecation dependency warning #84
Comments
You could try using "overrides": {
"vite-plugin-svg-icons": {
"svgo": "~3.0.0"
}
} Haven't tried or tested it though. |
Thank you 🙏 for your suggestion! Code package.json {
"name": "vite-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^5.2.10"
},
"dependencies": {
"vite-plugin-svg-icons": "^2.0.1"
},
"overrides": {
"vite-plugin-svg-icons": {
"svgo": "~3.0.0"
}
}
} |
This could work: "overrides": {
"svg-baker": {
"micromatch": "^4.0.0"
}
} (svgo wasn't the problem but a sub-sub-dependency of svg-baker) |
Well done ! Indeed ! 👍 package.json {
"name": "vite-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^5.2.10"
},
"dependencies": {
"vite-plugin-svg-icons": "^2.0.1"
},
"overrides": {
"svg-baker": {
"micromatch": "^4.0.0"
}
}
} |
This should fix it "overrides": {
"svg-baker": {
"micromatch": "^4.0.0"
},
"vite-plugin-svg-icons": {
"svgo": "^3.2.0"
}
} |
It's still the same error, I don't know why. package.json {
"name": "vite-starter",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"vite": "^5.2.10"
},
"dependencies": {
"vite-plugin-svg-icons": "^2.0.1"
},
"overrides": {
"svg-baker": {
"micromatch": "^4.0.0"
},
"vite-plugin-svg-icons": {
"svgo": "^3.2.0"
}
}
} |
Weird, did you try removing the |
Could you resolve your error? |
On installation of this package, a warning occurs.
This should be fixable by updating SVGO to a newer version, since the deprecated dependency
stable
seemsupdated to a newer version in SVGO v3.
The text was updated successfully, but these errors were encountered: