You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Unmatched selector: %
at parse (/usr/local/lib/node_modules/svgo/node_modules/css-what/lib/commonjs/parse.js:85:15)
at compileUnsafe (/usr/local/lib/node_modules/svgo/node_modules/css-select/lib/compile.js:48:69)
at compile (/usr/local/lib/node_modules/svgo/node_modules/css-select/lib/compile.js:43:16)
at is (/usr/local/lib/node_modules/svgo/node_modules/css-select/lib/index.js:140:76)
at matches (/usr/local/lib/node_modules/svgo/lib/xast.js:38:10)
at computeOwnStyle (/usr/local/lib/node_modules/svgo/lib/style.js:151:9)
at computeStyle (/usr/local/lib/node_modules/svgo/lib/style.js:265:26)
at Object.enter (/usr/local/lib/node_modules/svgo/plugins/removeUnknownsAndDefaults.js:153:15)
at visit (/usr/local/lib/node_modules/svgo/lib/xast.js:52:30)
at visit (/usr/local/lib/node_modules/svgo/lib/xast.js:68:9)
It's not SVGO problem. As you can see by stacktrace it's an error in css-what through css-select dependency.
It's need to create a correct bug report ticket in css-what repo. For that, it's need to know how svgo uses the repo. I mean, it's need to provide a correct code example, that reproduce the problem using only css-what repo.
Stacktrace shows all the chain. Basically, it computes styles for elements. It needs debugging to say what happens, but I'm not sure how good animations are supported by those libraries.
This works for me with the latest SVGO code (version 4). It fails as described above with the 3.3.2 code. The css libraries used by SVGO appear to be identical between SVGO 4 and 3.3.2.
When run
svgo icon.svg
, I receive the errorThe file is:
The text was updated successfully, but these errors were encountered: