0

Just had Node.js installed in my WSL2 according to the instruction here.

https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl

However, I noticed that IntelliSense is not working for Node.js and I am not able to see the declarations file by hovering and clicking on the fs variable.

Have gone through some other threads but still can't find any solutions to it.

Update: Only Nodejs modules are not having autocompletion Visual Studio Code Intellisense not working for Javascript

Visual Studio Code: Intellisense not working

VS code screenshot

longan177
  • 37
  • 1
  • 4
  • ... did you install `@types/node@` for this workspace yet? – starball Jul 02 '23 at 20:30
  • i don't think we need to explicitly install right if i am working with a single js file as the editor usually have built-in support for IntelliSense which can provide auto completion – longan177 Jul 03 '23 at 04:03
  • please try it. I think you do. TypeScript does not bundle types for NodeJS. AFAIK, you need to install them manually. – starball Jul 03 '23 at 04:05

0 Answers0