-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
SVG with default XML processing instructions #179
Comments
This is the case when you output a non-standard svg icon |
我也遇到了这个情况,sketch导出的svg带有的前缀, 生成symbol.svg的时候会报错 |
@maimai123 Export SVG Files using sketch's SVGO Compressor plugin. |
Thnx https://github.com/svg/svgo , helped me a lot |
@jaywcjlove Would it be possible to skip the step of creating the SVG symbol? I'm having the same issue and it's just with this step, all other files are generated fine. |
Ilustrator exports SVG with default XML processing instructions that will throw given error when svg is parsed.
SvgToFont:CLI:ERR: Error: Unmatched selector: ="1.0" encoding="UTF-8"?><style>.cls-1{fill:#100;}.cls-2{isolation:isolate;}</style>
at parse (\node_modules\css-what\lib\commonjs\parse.js:85:15)
at Object.select (\node_modules\cheerio-select\lib\index.js:191:68)
at LoadedCheerio.find (\node_modules\cheerio\lib\api\traversing.js:90:30)
at initialize (\node_modules\cheerio\lib\load.js:156:34)
at \node_modules\svgtofont\lib\utils.js:233:29
at Array.forEach ()
at \node_modules\svgtofont\lib\utils.js:230:37
at new Promise ()
at createSvgSymbol (\node_modules\svgtofont\lib\utils.js:229:12)
at exports.default (\node_modules\svgtofont\lib\index.js:84:43)
The text was updated successfully, but these errors were encountered: