perentiormity
perentiormity

Reputation: 13

How can i fix my vs code intellisense lagging with mongoose package

Whenever I create a schema The intel lisense works slowly and if I require it in other files the whole project intellisense.

Upvotes: 0

Views: 698

Answers (1)

user3271967
user3271967

Reputation: 133

My VSCode smart tips is laggy! When I delete node_modues dir , everything is ok, so I started to check every package.

I tested lots of npm packages, and I found that is because Mongoose 6.x versions makes VSCode lag;

Then, I tester lower versions Mongoose, and the problem remains.

The reason is, when you use:

npm i [email protected]

the [email protected] package will install Mongoose 6.0.10 version automatically because the required relation is :

[email protected][email protected][email protected]

but, I still don't know why 6.0.10 makes the IDE lag.

Upvotes: 2

Related Questions