svelte@5.0.0-next.157 breaks `svelte-check`
lts20050703 opened this issue · 1 comments
lts20050703 commented
Describe the bug
svelte@5.0.0-next.157 breaks svelte-check (and intellisense)
When trying to run svelte-check
errors such as the following will appear (as well as VSCodium will scream at me)
- Error: Cannot find name '$state'.ts(2304)
- Error: Cannot find name '$derived'.ts(2304)
- Error: Cannot find name '$effect'.ts(2304)
- ...
I'm not sure if this is a bug in svelte or the svelte-check tool needs to be updated, so feel free to close this one if it's svelte-check tool needs to be updated. (The other bug report: sveltejs/language-tools#2405)
Reproduction
npm install svelte@5.0.0-next.157
<script>
let x = $state()
let y = $derived(x * 2)
$effect(() => {
console.log("Mounted")
})
</script>
Logs
No response
System Info
System:
OS: Linux 6.5 KDE neon 6.0 6.0
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
Memory: 4.69 GB / 15.40 GB
Container: Yes
Shell: 3.7.1 - /usr/bin/fish
Binaries:
Node: 22.3.0 - ~/.local/share/nvm/v22.3.0/bin/node
Yarn: 1.22.21 - ~/.local/share/nvm/v22.3.0/bin/yarn
npm: 10.8.1 - ~/.local/share/nvm/v22.3.0/bin/npm
pnpm: 8.15.3 - ~/.local/share/nvm/v22.3.0/bin/pnpm
bun: 1.1.10 - ~/.bun/bin/bun
Browsers:
Brave Browser: 126.1.67.116
npmPackages:
svelte: ^5.0.0-next.157 => 5.0.0-next.157
Severity
blocking an upgrade
AmitPr commented
Downgrading to svelte@5.0.0-next.155
fixes this issue for me -- seems likely this is an issue in 157.