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
Astro glob throw unsupported files for svg #10913
Comments
@Its-Just-Nans setting width & height doesn't help at all. |
Can you provide the svg ? |
Sure I can but in fact is doesn't matter, which svg's to use. |
The SVG in the repro is quite wonky, many tools can't parse it correctly. For instance, trying to paste it in https://jakearchibald.github.io/svgomg/ results in an error about it being invalid.
Replacing the SVG with a more proper one (a random leaf icon I found online) works: https://stackblitz.com/edit/astro-plbyh1?file=src%2Ffiles%2Fleaf.svg |
Closing as this is an upstream issue. |
Astro Info
Describe the Bug
Astro glob throw unsupported files for svg
throws
unsupported file type: undefined
What's the expected result?
Detect and import svgs
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-vexf1b
The text was updated successfully, but these errors were encountered: