Skip to content
Discussion options

You must be logged in to vote

Ah, gotcha. My bet is on the OS then. I'm use Linux.

Symlinks can be a bit tricky on Windows, and it looks like the combination of VS Code's file watching + TypeScript's resolver + pnpm's symlink structure just doesn't play nice with preserveSymlinks: true on that platform.

The official pnpm docs have a section on TypeScript and they explicitly warn against using preserveSymlinks. Basically, they say "don't do it" because it completely breaks how TS finds the type definition files. (https://pnpm.io/typescript#do-not-preserve-symlinks)

So your original problem was a classic, documented configuration issue. Good that you don't actually need that flag anyway! :)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@YKDZ
Comment options

@vofronte
Comment options

Answer selected by YKDZ
@vofronte
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants