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

3
  • ... did you install @types/node@<major version number of your node installation> for this workspace yet? Commented Jul 2, 2023 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 Commented Jul 3, 2023 at 4:03
  • please try it. I think you do. TypeScript does not bundle types for NodeJS. AFAIK, you need to install them manually. Commented Jul 3, 2023 at 4:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.