-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
bug: Error after upgrading svelte from 5.12.0 to >5.13.0 for customElement #15372
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
Comments
also happening on a new install of bits-ui because its svelte version isn't pinned. just importing the bits-ui lib and starting dev server, immediately crashes with err |
yes, i can confirm, may I ask you, on which version are you (svelte & bits-ui)? I currently try to migrate shadcn-svelte to svelte 5 components and get this error with bits-ui.... I couldn't solve it so far, but it's frustrating since I want to migrate to svelte 5 :/ |
my
but a new install of this wont work. i had to use an old |
Does anyone have any suggestions for what I need to change? I can also adjust the code, but I have no idea which direction to look in. |
I ran into this trying to boot a project i'd been developing using |
I'm a little confused that no one (even the developers) can comment on this issue. This doesn't bode well for the future, and I'll probably look for another framework. |
The solution for me is to add this to the // svelte.config or vite.config
preprocess: vitePreprocess({
postcss: true,
script: true // add this line and the error goes away
}) Source: Svelte integrations |
Hey @isaacvr , thanks tried it (https://github.com/MelleD/lovelace-expander-card/pull/464/files) but get this error (https://github.com/MelleD/lovelace-expander-card/actions/runs/14477973008/job/40608105281?pr=464) It is the same error like on main |
Describe the bug
I have a small hobby project and am currently having a problem upgrading the version. Since I'm not an expert, I don't know whether the behavior is intentional or a bug.
If it's not a bug, please just relabel it.
No one in Discord could help me straight away and say I should open a ticket here.
Problem 1
When I switched from svelte 5.12.0 to 5.13.0 I got the following error:
Problem 2 is different since Svelte >5.15.0 I get a different error
See build: https://github.com/MelleD/lovelace-expander-card/actions/runs/13476126898/job/37655546958#step:7:44
Problem is here with the public config
https://github.com/MelleD/lovelace-expander-card/blob/main/src/ExpanderCard.svelte#L27
This works before and since svelte >5.15.0 there is an issue.
Thanks for your input
Reproduction
https://github.com/MelleD/lovelace-expander-card/
Logs
System Info
System: OS: macOS 12.7.6 CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Memory: 102.78 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 22.8.0 - /usr/local/bin/node npm: 10.8.2 - /usr/local/bin/npm pnpm: 10.4.1 - /usr/local/bin/pnpm npmPackages: svelte: 5.20.0 => 5.20.0 But also on github action see build See build: https://github.com/MelleD/lovelace-expander-card/actions/runs/13476126898/job/37655546958#step:7:44
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: