-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
v1: Failed to import "logo": Unexpected element: <switch> #185
Comments
I got a similar error. |
This error is caused by our dependency on In this case, I don't think the |
I ran svgo on the command line using the original SVG file as input and received no output errors. However, the output file produces the same error as the original one. |
I had similar issue with and it turns out iconify doesnt allow text bc of how they render differently based on the OS. https://iconify.design/docs/articles/cleaning-up-icons/validate.html#text-and-fonts |
It actually makes sense. I transformed the text to path and now it works. Thanks for the tip! |
What version of
astro-icon
are you using?v1.0.2
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Since Version 1, loading of our "logo.svg" failed with error
Failed to import "logo": Unexpected element: <switch>
What's the expected result?
Loading the
logo.svg
should work like in pre 1.0 versions.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-j9gyhg?file=src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered: