jasikpark / astro-svg-loader

Import SVG's as Astro components

Home Page:https://stackblitz.com/github/jasikpark/astro-svg-loader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage in Astro component

kireerik opened this issue · comments

Not working when I am trying to use it in an Astro component (which is outside of the root Astro directory).

Using it directly in an Astro page works (using a relative path (Trying to use the @assets/ syntax it does not work (not even in an Astro page).)).

is your project open source? mind providing a repro? https://astro.new/minimal?on=stackblitz

glad you're finding use out of this simple utility 😁

I am now using astro-svg-components. That works properly.

Ok, are you not interested in fixing your setup w/ @jasikpark/astro-svg-loader? I can close your issues?

Happy to help sort it out otherwise

Yes astro-svg-components. seems to work well for me, and I actually prefer it's structure in terms of the usage I think.

ok! no worries then, i'll close these for now 💜