Open CxRes opened 1 year ago
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 strict-peer-dependencies=false
into .npmrc
file.
strict-peer-dependencies=false
doesn't work, add the following configuration to package.json:
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"svgo": "2.8.0",
}
}
},
Another option is to tell pnpm
to ignore svgo@^3.0.2
in package.json
{
"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.