poppa / sveltekit-svg

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

Fails to compile in Svelte 5: "Invalid compiler option: css: "none" is no longer a valid option" #55

Closed walker-tx closed 10 months ago

walker-tx commented 10 months ago

Howdy!

I recently tried updating my project to Svelte 5 (w/ SvelteKit v2), and it's throwing the following error when starting up the dev server:

Failed reading SVG "/Users/.../dev/web-app/src/icons/Flowbite-ComputerSpeaker.svg?component": Invalid compiler option: css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case. sr [CompileError]: Invalid compiler option: css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.

It's not really a big deal atm since Svelte 5 is still beta, so I'll just downgrade for now so I can continue using your library.

walker-tx commented 10 months ago

Sorry - just saw this!

https://github.com/poppa/sveltekit-svg/issues/53#issuecomment-1890394714