-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unmet peer dependency svgo 3 in optimizer-htmlnano #8948
Comments
Looks like we'll have to restrict the version to <=2.0.3 though, upgrading svgo might break existing config files. https://github.com/svg/svgo/releases/tag/v3.0.0 |
Is there any workaround that I can do before this can be solved? |
You can skip peer dependency check, but make sure everything is working correctly if you doing it. I encountered this using pnpm, here is the related documentation: https://pnpm.io/npmrc#strict-peer-dependencies Put |
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"svgo": "2.8.0",
}
}
}, |
Another option is to tell {
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"svgo@^3.0.2"
]
}
}
} |
related #9660 (the other issue may be a duplicate of this one) |
It seems htmlnano 2.0.4 used by optimizer-htmlnano wants svgo ^3.0.2 as a peer dep. optimizer-htmlnano loads svgo 2.8.0 instead. Please update accordingly.
The text was updated successfully, but these errors were encountered: