#Cannot import svg
7 messages · Page 1 of 1 (latest)
Looks like it's an issue with ultrahtml have you tried disabling that package?
The package is not what I add. It seems to be used to parse svg in Astro.
Have you tried using Astro Icon for your SVGs? It's generally the recommended way and works great (currently using it on the v5 beta without issue)
Yes, I'm using it in production environment. But I'm not sure it's for non-icon svgs.
Can use it for whatever SVG you want, but if you want to specify between them you could use the <Image /> component for the "images"
I'm using the svg with markdown image syntax. I want to change stroke color when it's in dark mode. So I'm finding a way to import svg directly.