Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code TypeScript settings points to a directory outside the project which might not be present #14

Open
thesobercoder opened this issue May 27, 2023 · 1 comment

Comments

@thesobercoder
Copy link

thesobercoder commented May 27, 2023

Just observed that the TypeScript library directory mentioned in the .vscode/settings.json points to a directory that might not be present on the users' machine.

 "typescript.tsdk": "../../node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib",

I think it should be configured like this -

 "typescript.tsdk": "./node_modules/typescript/lib",

Also, based on this discussion, it looks like the tsconfig.tsbuildinfo file should be added to .gitignore.

vercel/next.js#30815 (comment)

@asfires
Copy link

asfires commented Jun 10, 2023

This change fixed the exact same issue I was having.

{
  "typescript.tsdk": "./node_modules/typescript/lib",
  "typescript.enablePromptUseWorkspaceTsdk": true
}

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

No branches or pull requests

2 participants