Open rhyses-pieces opened 2 days ago
Update:
I added the CHOKIDAR_USEPOLLING: 1
environment variable for the LSP settings, which seems to work, but I'm now running into the issue where the installed Node executable bundled with Sublime Text throws an error since the npm dependencies on WSL aren't compatible. Rollup, in particular, seems to be the culprit since I run into this particular error:
LSP-svelte: Error: Cannot find module @rollup/rollup-win32-x64-msvc. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
I tried installing the dependencies with npm, pnpm, and bun with similar results, wherein all the package managers installed in WSL only install Linux-dependent dependencies.
Is there any way to just use Node installed in WSL to make this work?
Operating System: Windows 11 Home Version 23H2 (build 22631.4460) Sublime Text Version: 4180
I'm using WSL2 to work on a Svelte project, but I noticed that the LSP crashes when opening a
.svelte
file. I've tried searching for issues narrowing down on WSL2 paths and the like but I wasn't able to find anything substantial.Steps to get this error:
npx sv create svelte-5-test
in WSL2 system.svelte
file in the new SvelteKit project