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: List of libraries not working out of the box #10359
Comments
|
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@mstachowiak what doesn't work exactly here? #8301 is present in Svelte 4 as well. The library should work since it sets the |
This comment was marked as resolved.
This comment was marked as resolved.
Adjusts the escaping mechanism done for server compilation. For template literals it's now only applied when explicitly told, which is the case for generated literals from the html template. Fixes a bug where a template literal string inside the `@html` tag was wrongfully escaped (#10359 (comment))
Adjusts the escaping mechanism done for server compilation. For template literals it's now only applied when explicitly told, which is the case for generated literals from the html template. Fixes a bug where a template literal string inside the `@html` tag was wrongfully escaped (#10359 (comment))
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
It seems like a ton of libraries are using |
TanStack/table#5213. The svelte wrapper for TanStack Table is using |
This comment was marked as resolved.
This comment was marked as resolved.
svelteflow.dev - the following error occurs as soon as the dep is installed
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
* fix: handle component binding mutation #10359 (comment) * alternative approach to mutating props (#10788) Co-authored-by: Rich Harris <rich.harris@vercel.com> --------- Co-authored-by: Rich Harris <richard.a.harris@gmail.com> Co-authored-by: Rich Harris <rich.harris@vercel.com>
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
https://github.com/vkurko/calendar
The library is using a lot of svelte/internal
|
Some libraries assign to properties of `$$props` and `$$restProps`. These were previously resulting in an error but are now handled properly #10359 (comment)
* 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 #10359 (comment) * $$props is coarse grained on updates, so we can simplify this * fix * fix comment
@dummdidumm Kitbook copies the Svelte DevTools chrome extension use of |
Created #11389 to track the devtools integration story |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
|
From the linked issue it sounds like you're setting |
Yeah, I did that, but I decided to come at it from the other angle and, following the advice from here, turned rune mode on for the entire app and turned it off for the individual incompatible library.
I think it would be helpful to have this info in the documentation. |
This is a weird one that I'm able to consistently reproduce (see repro below) on latest version of Svelte 5, Superforms, Formsnap, and Bits UI. Whenever a form input binds to control attrs, which is the recommended approach, any event handlers attached to that input do not fire. However, removing the {...attrs} spread appears to work. Repro: https://stackblitz.com/~/github.com/pheuter/formcontrol-event-repro Broken: <Form.Field {form} name="firstName">
<Form.Control let:attrs>
<Form.Label>First Name (`oninput` broken)</Form.Label>
<Input
{...attrs}
bind:value={$formData.firstName}
oninput={(e) => alert(`onchange: ${e.currentTarget.value}`)}
/>
</Form.Control>
<Form.FieldErrors />
</Form.Field> Working: <Form.Field {form} name="lastName">
<Form.Control>
<Form.Label>Last Name (`oninput` working)</Form.Label>
<Input
bind:value={$formData.lastName}
oninput={(e) => alert(`onchange: ${e.currentTarget.value}`)}
/>
</Form.Control>
<Form.FieldErrors />
</Form.Field> |
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/internal
in a way that can't be backported Svelte 5 support: ERROR: No matching export in "a" for import "b" TanStack/table#5213 - but a new version of the library is underway with Svelte 5 support!Fixed
svelte-confetti
svelte-range-slider-pips
(through fix: better interop of$state
with actions/$:
statements #10543)Reproduction
Use the libraries and observe errors
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: