stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.22k stars 884 forks source link

SolidJS TypeScript Template Intellisense/Language Server Issue (pnpm dependency resolution issue?) #2192

Open Agapurnis opened 1 year ago

Agapurnis commented 1 year ago

Description of Bug

Although things compile perfectly fine, the default template for a SolidJS TypeScript project will report errors in any open TypeScript file (.ts, .tsx) because it cannot find any modules.

My guess is that this is because of the usage of pnpm, because if I stop the first command before it executes and use npm instead, things seem to work. That might have to do with turbo, but I'm really not familiar with how all of that works.

Steps to Reproduce

  1. Go to https://stackblitz.com/?starters=frontend
  2. Click on the SolidJS TypeScript template
  3. Wait for the project to open
  4. Wait for the language server to kick in
  5. Examine a TypeScript file and see issue

Expected Behavior

Dependencies will be located, no errors are present.

Additional Context/Questions System: ChromeBook Operating System: ChromeOS, Version 107.0.5304.110 (Official Build) (64-bit) Browser: Chrome, Version 107.0.5304.110 (Official Build) (64-bit)

Thanks for all of your hard work!

jacobtipp commented 1 year ago

I am facing the same issue, compiled and runs fine but does not resolve any modules. Here is the repo.