You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the Svelte 5 compiler on the program linked in the reproduction fails with the error can't overwrite accessor property "x".
This is annoying since it worked in Svelte 4, and it's hard to pinpoint the cause of this error when doing an incremental adoption of the new syntax.
This is because you are exporting const instead of let...i'm assuming you wanted to export let otherwise this is one of the documented breaking changes
Describe the bug
Running the Svelte 5 compiler on the program linked in the reproduction fails with the error
can't overwrite accessor property "x"
.This is annoying since it worked in Svelte 4, and it's hard to pinpoint the cause of this error when doing an incremental adoption of the new syntax.
Reproduction
https://svelte.dev/playground/f3fedf8d01d54d21bdaa924417649d5b?version=5.0.5
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: