#LSP not detecting Deno or Workspace dependencies into .svelte or .astro file

1 messages · Page 1 of 1 (latest)

timid mango
#

I'm getting LSP errors when importing dependencies from other places within my workspace into a Svelte/Astro project. I initialized the project following the directions on the Deno website, the only difference is that it is within a workspace with other Deno projects. I also installed the Deno vite plugin, i'm not sure that affected anything though.

At runtime, the packages seem to be working, they just seem to be invisible to the LSP and completely untyped. Also, in my .ts files, non deno packages that are in package.json don't seem to be visible until they are fully typed out.

timid mango
#

OK, I got this working but this was a nasty problem. The solution was simple however, I had to manually add every single dependency from my Deno workspace deno.json files to my node project's package.json dependency section.