jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
554 stars 58 forks source link

Problems using ?url syntax #119

Closed tiehfood closed 11 months ago

tiehfood commented 11 months ago

I have the following snippet in my vue app:

<svg>

  <use href="@/assets/sp-icons.svg?url#breaktime" />

</svg>

but after compilation I get the following error message in the browser: image

What am I missing and how can I fix this?

I'm using Vue with vite v4.3.9

tiehfood commented 11 months ago

It was a mistake on my configuration, so I will close this one