'vsCode dependencies bug with nestJs
my vsCode bug to recognize dependencies when i program with nestJs, after setting up the project with: nest new projectname
then after running for example: npm install --save @nestjs/typeorm [email protected]
vsCode doesn't recognize import { TypeOrmModule } from '@nestjs/typeorm'; as long as I don't restart the ide. Any ideas ?
Solution 1:[1]
Sounds like the Typescript Language Server extension isn't updating after adding new directories to the node_modules. Instead of fully restarting the IDE you can just restart the Typescript Language Server. ctrl/cmd + shift + p > Typescript: Restart TS Server. It'll take less time than restarting the IDE and should get everything updated.
For debugging, you might want to look in the integrated console on the Output tab and choose Typescript from the drop down, see if it's trying to update and is slow or something else is happening all together.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jay McDoniel |
