-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
export const breaks in svelte 5 #15357
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
This is expected and a documented breaking change Thanks for reporting tho 😊 |
@paoloricciuti why doesn't it error/warn then |
Ensuring the shape of an object (like the props object) is a job for TypeScript |
very well, I was in the REPL and wasn't using TS and wasted a lot of time as the result |
Use of Can this be reopened to track this missing error, or is it a duplicate of another issue? |
@WillsterJohnson no you can still do it with |
Correct |
|
Describe the bug
export const no longer allows you to export a fixed value once you migrate to svelte 5
Reproduction
svelte 4 (observe that it uses svelte 4 syntax, and a
2
shows up, exported from Thing): https://svelte.dev/playground/1c7f6e4cd62c4788866295f2ee325706?version=5.20.2svelte 5 (observe that it uses svelte 5 syntax, and since
v
is undefined, nothing shows up): https://svelte.dev/playground/000e19b8335847938feffe83a200675a?version=5.20.2Logs
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: