poppa / sveltekit-svg

SvelteKit plugin that makes it possible to import SVG files as Svelte components, inline SVG code or urls
MIT License
234 stars 23 forks source link

Using SVG as component is giving me an error? #38

Closed hypercompl3x closed 1 year ago

hypercompl3x commented 1 year ago

Don't think I am doing anything wrong?

image

image

error

poppa commented 1 year ago

It would help a lot if you could state what versions you are using, primarily Svelte/SvelteKit, Vite, @poppanator/sveltekit-svg.

hypercompl3x commented 1 year ago

"@sveltejs/kit": "^1.20.4", "svelte": "^4.0.0", "@poppanator/sveltekit-svg": "^4.0.0", "vite": "^4.3.6",

poppa commented 1 year ago

Note that the plugin should be in vite.config and not svelte.config

hypercompl3x commented 1 year ago

Welp Im stupid thanks for pointing that out