Gamblers
Gamblers

Reputation: 31

Visual Studio Code AutoComplete is broken

I am starting to learn node.js and I installed Visual Studio Code as my text editor and it wont let me type "require('something')"

Everytime I type "require" then "(" it auto completes to "requestAnimationFrame()".

The language is set to JavaScript. What is wrong with this thing? I tried turning off auto complete in the settings and it didnt change anything at all.

Please help.

Upvotes: 3

Views: 826

Answers (1)

user12229985
user12229985

Reputation:

I am also very new to Node.js. Had the same issue as you mentioned. The only work around I found that solved the problem is typing

npm install @types/node --save

in the terminal. This will install some packages in the node_module folder and solve the problem.

Upvotes: 1

Related Questions