-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Svelte 5 Support #53
Comments
I've released a beta with Svelte 5 support (hopefully). Test it and check if it works.
|
This seems to be working almost perfectly, thanks! The only minor issue is that I still get this warning:
Also I encountered #54 and temporarily worked around it by adding |
Dunno what's changed in Vite 5, but removing the query string seems to fix issue #53 (`Sourcemap for "..." points to missing source files`)
I think this should now be fixed in 5.0.0-svelte5.2 |
That works for me! |
@poppa thanks so much for the update to Svelte5! |
Trying to install it with the rc version
|
Thanks for the report @pyrossh . This should now be fixed in v5.0.0-svelte5.3. |
@poppa Thanks it works now. |
I'm still seeing
with "svelte": "5.0.0-next.242",
"@poppanator/sveltekit-svg": "^4.2.1", is there a way to pass a css fill to the SVG to prevent the warning? also i'm wondering if the config options in the readme here are not ready for 5.0 of sveltekit? const config = {
preprocess: vitePreprocess(),
kit: { ... },
// put here for now but not sure? at least no error on startup
plugins: [
svg(), // Options are optional
], |
You need to install the version 5 package of this plugin, e.g. the |
Svelte 5 is out! Time to release seveltekit-svg 5! |
@madmoizo Okey dokey, so I've published v5 as the default package on NPM |
I realise this is probably still rather early to be looking at this, but I am so I figure I'll put a ticket with my findings. I have patched it locally so there's no urgency on my part to get it fixed ;)
When using
sveltekit-svg
with Svelte5.0.0-next.26
, compilation fails with the following error:Changing
css: 'none',
tocss: 'external',
fixes the compile issue and generally seems to work (the SVG is rendered now), although it now has a couple of warnings:(the last one is for the specific SVG I am importing, but applies more generally)
The text was updated successfully, but these errors were encountered: