svelte: Svelte 5: List of libraries not working out of the box
Describe the bug
Some libraries don’t work with Svelte 5 out of the box. It will probably be impossible to make every library compatible given that some use stuff svelte/internal (which they really shouldn’t) and everything in there changed, but those who don’t should be closely investigated. Feel free to post libraries you found that don’t work in here, ideally along with a small reproduction (repro or “install and use component X”).
To investigate
svelte-turnstile
Won’t / can’t fix
- Svelte wrapper for Tanstack Table, because it uses
svelte/internalin a way that can’t be backported https://github.com/TanStack/table/issues/5213
Fixed
svelte-confettisvelte-range-slider-pips(through #10543)
Reproduction
Use the libraries and observe errors
Logs
No response
System Info
-
Severity
annoyance
About this issue
- Original URL
- State: open
- Created 5 months ago
- Reactions: 17
- Comments: 21 (5 by maintainers)
Commits related to this issue
- fix: only escape characters in SSR template Adjusts the escaping mechanism done for server compilation. For template literals it's now only applied when explicitly told, which is the case for generat... — committed to sveltejs/svelte by dummdidumm 4 months ago
- fix: only escape characters in SSR template (#10555) Adjusts the escaping mechanism done for server compilation. For template literals it's now only applied when explicitly told, which is the case fo... — committed to sveltejs/svelte by dummdidumm 4 months ago
- fix: handle component binding mutation https://github.com/sveltejs/svelte/issues/10359#issuecomment-1991885046 — committed to sveltejs/svelte by dummdidumm 4 months ago
- fix: handle component binding mutation (#10786) * fix: handle component binding mutation https://github.com/sveltejs/svelte/issues/10359#issuecomment-1991885046 * alternative approach to mutati... — committed to sveltejs/svelte by dummdidumm 4 months ago
- fix: handle reassignment of `$$props` and `$$restProps` Some libraries assign to properties of `$$props` and `$$restProps`. These were previously resulting in an error but are now handled properly h... — committed to sveltejs/svelte by dummdidumm 2 months ago
Hey @dummdidumm, we’ve had a few reports on a couple of components with Bits/Melt (Range Calendar being one), as well as a few about https://github.com/huntabyte/cmdk-sv. I’ll confirm and try to put some minimal repros together.
@dummdidumm most of the issues I’m seeing in a few different components consist of the
ERR_SVELTE_TOO_MANY_UPDATES. The functionality appears to work as expected, but the error is displayed in the browser’s console.Reproduction
i’m using shadcn-svelte and trying to get the combo box example working with the current version of svelte 5. I’ve installed all the below dependancies for it to work:
npx shadcn-svelte@latest add popovernpx shadcn-svelte@latest add commandnpm install cmdk-svWhen installing these i need to use
--forceas otherwise i can’t install any of theshadcn-sveltecomponents. I’ve been told that its because it usessvelte/internal. You can see the error i get when trying without force in the second code example below. However more importantly I get the below error when I try to open a page with the combo box element on itError with combo installed using
--forceError when trying to install any
shadcn-sveltecomponent without--forcesvelteflow.dev - the following error occurs as soon as the dep is installed
svelte-range-slider-pipsbreaks as tracked in https://github.com/simeydotme/svelte-range-slider-pips/issues/130svelte-confettihas been fixed as of version 1.3.2 https://github.com/Mitcheljager/svelte-confetti/pull/10It seems like a ton of libraries are using
svelte/internalis there no way to mimic the functionality of the most common things they are doing to greatly reduce the ecosystem fragmentation?svelte-sonnerrepro: https://stackblitz.com/edit/sveltejs-kit-template-default-y7ihkq?file=src%2Froutes%2FCounter.svelteor just install “svelte-sonner” and use component with latest svelte 5 (alpha 68 at this moment)
In the browser console it says:
ERR_SVELTE_TOO_MANY_UPDATES@mquandalle can you provide a reproduction? I tried the code snippet in the related
svelte-range-slider-pipsissue and it’s working for me.@Leftium the bug with the artifact should be fixed through #10555
svelte-sonner no work -> https://github.com/sveltejs/svelte/issues/10359#issuecomment-1949429550