poppa / sveltekit-svg

SvelteKit plugin that makes it possible to import SVG files as Svelte components, inline SVG code or urls
MIT License
230 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 8 months ago

walker-tx commented 8 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 8 months ago

Sorry - just saw this!

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