-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Typing $props makes Vite crash #14741
Comments
Same issue here. I could swear it worked before but now even with svelte 5.0.0 I get this error. |
Yes, it did work before, and same here, even when reverting to earlier version I get the error. I will revert each package one by one to see which one is causing that. |
Seeing this too, builtin types crash too, for example: <script lang="ts">
let swiperContainer: HTMLDivElement;
</script> Leads to:
|
Seems an issue with "pnpm": {
"overrides": {
"esrap@1.3.0": "1.2.3"
}
} |
Didn't have this issue till upgraded to 5.14.2 and removed/installed the Svelte for vscode plugin. Going back to 5.14.1 didn't solve it. |
That seems to fix the issue for me too. |
There are more context on: |
Was upgrading today as well and hit by this. It do work if removing your lock file, overriding esrap, and reinstalling. Something in esrap sure broke something. "overrides": {
"svelte": {
"esrap": "1.2.3"
}
} |
fixed in 5.14.3 |
Describe the bug
I have yet to pinpoint the exact version that causes this bug, but it's present in the latest version, when creating a new app with
npx sv create
. Any kind of types declared for $props makes Vite crash.Reproduction
Works:
Doesn't work:
Logs
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: