Crash with Svelte 5
blackjyn opened this issue · comments
Ken Arok commented
So, Svelte 5 is now at RC. then I tried some taste of it.
I add v5 my project:
λ npm install --save-dev svelte@next
λ npm list
root-js-svelte5rc@0.0.1 SvelteNEXT
├── @sveltejs/adapter-auto@3.2.0
├── @sveltejs/kit@2.5.7
├── @sveltejs/vite-plugin-svelte@3.1.0
├── svelte-check@3.7.0
├── svelte@5.0.0-next.120
├── typescript@5.4.5
└── vite@5.2.10
Then the LSP log :
LSP-svelte: Error: Cannot find module 'D:\xxxx\_SvelteNEXT\node_modules\svelte\compiler.cjs
And yes, Svelte 5 deosnt have that compiler.cjs file.
Svelte 4 running just fine.
ENV:
- WIndows x64
- Sublime Text 4
- LSP Svelte v3,10
Предраг Николић commented
I will try to find time to see how to address this.
Thanks for the report.
Предраг Николић commented
this PR is related sveltejs/language-tools#2327
Предраг Николић commented
I created a release which includes the fix https://github.com/sublimelsp/LSP-svelte/releases/tag/v3.1.1
it will be available in ~2h or less on Package Control
Ken Arok commented
wohoo, Svelte 5 support works like a charm . Thank you @predragnikolic