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

Automatic type acqusition for javascript projects not working anymore #230581

Open
twilson90 opened this issue Oct 5, 2024 · 4 comments
Open
Assignees

Comments

@twilson90
Copy link

Does this issue occur when all extensions are disabled?: Yes

Version: 1.94.0 (user setup)
Commit: d78a74b
Date: 2024-10-02T13:08:12.626Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

Steps to Reproduce:

For the last week or so VSCode has stopped automatic type acqusition for javascript projects.

I have a folder %LOCALAPPDATA%\Microsoft\TypeScript\5.5\node_modules, whenever I installed a package from npm in any project, vscode would automatically get the type definitions from the @types npm repo and store them here.

For the last week or so, there's a new directory in the TypeScript folder, 5.6.
This folder is empty except for a bare package.json.
Since the creation of that folder, and presumably a TypeScript version update, automatic type acquisition has stopped working entirely.
I've tried reinstalling vscode, uninstalling all addons, erasing all settings and deleting %Appdata%/Roaming/Code
Nothing works.
Really frustrating.
Please help!

TypeScript.zip

@twilson90
Copy link
Author

Just rolled back to August 2024 (version 1.93) and the problem is not present.

@IllusionMH
Copy link
Contributor

May be related to microsoft/TypeScript#60156
You can try to install TS 5.5 somewhere locally and point VS Code there. Should fix problem while fix is not released.

@kkocdko
Copy link
Contributor

kkocdko commented Oct 8, 2024

also hit this bug in my machine

thanks for the fix in upsteam

for a temp workaround, try:

cd ~/.cache/typescript/5.6
npm i -D @types/node
# and more you need

@kkocdko
Copy link
Contributor

kkocdko commented Oct 10, 2024

this is fixed in 1.94.2 , consider close this issue?

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

4 participants