-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
Svelte 5 generates incorrect code, causing the type of the underlying #value to be incorrect when set() is called.
It's worth noting that simply storing this.#value in a local variable first fixes the issue.
Reproduction
Logs
No response
System Info
System:
OS: macOS 14.2.1
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 3.15 GB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.5.0 - /usr/local/bin/node
npm: 10.2.4 - /usr/local/bin/npm
pnpm: 8.14.0 - /usr/local/bin/pnpm
Browsers:
Safari: 17.2.1Severity
annoyance