-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Cannot assign to derived state #214
Comments
If you pin https://stackblitz.com/edit/sveltejs-kit-template-default-bekldygt?file=package.json |
Looks like this was an expected change in Svelte with this PR |
I will investigate further but this seems like a bug with Svelte, as that line it is highlighting as assigning to derived state is not assigning to derived state. |
This was a bug introduced by Svelte. There appears to be a fix PR submitted already so let's hope it gets merged/released soon :) sveltejs/svelte#15276 |
Svelte 5.20 was just released with the above-mentioned PR. I just upgraded my code to it and don't see the error anymore so I think we're good here! |
Awesome, thanks for the update @dimfeld ! |
Describe the bug
Just importing anything from Formsnap breaks the Vite dev server due to assigning to a constant.
I did a fresh npm install and it started appearing, but I was already on v2.0.0 before, so I'm not sure what changed now.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-2bpq2kq9?file=src%2Froutes%2F%2Bpage.svelte
System Info
Severity
blocking all usage of Formsnap
The text was updated successfully, but these errors were encountered: