Posts

Showing posts with the label visual-studio-code

vs code cannot find module '@angular/core' or any other modules

Image
vs code cannot find module '@angular/core' or any other modules my project was generated with [Angular CLI] version 1.2.6. I can compile the project and it works fine, but I always get error in vs code telling me cannot find module '@angular/core' cannot find module '@angular/router' cannot find module ..... I have attached content of my tsconfig.json file this has been really frustrating for me, spending 2 hours to figure out what is wrong, I have also uninstalled and reinstalled the vs code it doesn't work. here is my enviroment specification : @angular/cli: 1.2.6 node: 6.9.1 os: win32 x64 @angular/animations: 4.3.4 @angular/common: 4.3.4 @angular/compiler: 4.3.4 @angular/core: 4.3.4 @angular/forms: 4.3.4 @angular/http: 4.3.4 @angular/platform-browser: 4.3.4 @angular/platform-browser-dynamic: 4.3.4 @angular/router: 4.3.4 @angular/cli: 1.2.6 @angular/compiler-cli: 4.3.4 @angular/language-service: 4.3.4 os:Microsoft vs 10 enterprise project root folder .a...

Intellisense wont show members in class

Image
Intellisense wont show members in class Hello I have a really annoying problem. Usually IntelliSense should show the members of a class i made for example: However this only seems to work outside of classes. if i try the same thing inside a Class it only shows members that i already used in this class: I've already tried this this.rectangle = /**@type {Rectangle} */(new Rectangle()); but it still does not work. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.