sublimelsp / LSP-svelte

Convenience plugin for Svelte Language Tools
MIT License
16 stars 0 forks source link

Crash with Svelte 5 #129

Closed blackjyn closed 4 months ago

blackjyn commented 4 months ago

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 Sublime Text triggers: svelte5_lsp_error

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:

predragnikolic commented 4 months ago

I will try to find time to see how to address this.

Thanks for the report.

predragnikolic commented 4 months ago

this PR is related https://github.com/sveltejs/language-tools/pull/2327

predragnikolic commented 4 months ago

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

blackjyn commented 4 months ago

wohoo, Svelte 5 support works like a charm . Thank you @predragnikolic svelte5lsp