#should vscode know about astro paths in tsconfig.js and .astro files?

16 messages · Page 1 of 1 (latest)

leaden heath
#

From what I can tell pnpm run build / dev work just fine. But in VSCode in tsconfig.js I get a File 'astro/tsconfigs/strict' not found.ts red underline on the line "extends": "astro/tsconfigs/strict", which seems less ideal. I have the Astro extension installed. Is this normal? Do others have this too?

#

it should be noted I don't appear to have any completion in my .astro files either

#

should vscode know about astro paths in tsconfig.js and .astro files?

#

for .astro files, the Astro mode does show in my toolbar:

eternal flint
#

Have you installed dependencies?

#

If so, I'd recommend maybe just reloading your editor? It seems like none of the dependencies are resolving.

leaden heath
#

via pnpm

#

reloaded editor, no change

#

aha!

#

@eternal flint thanks for dropping in and giving me the hint!

#

so I installed Astro via pnpm in WSL2 Ubuntu, but opened the project in Windows.

#

I needed to restart VSCode in WSL mode, and open the project through the WSL filesystem instead of the windows one.

eternal flint
#

Ah yeah, there's weird things like that with WSL sometimes

leaden heath
#

I don't think I had this problem with npm... but maybe? or maybe it is a problem once using pnpm and the soft links it makes

#

since I converted over

#

anyways, thanks for dropping in and somehow giving me the hint so I can stop banging my head!