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

前端 未结 30 1129
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-23 03:10

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 mo

30条回答
  •  温柔的废话
    2020-12-23 03:15

    If we get this type of error just use the command:

     npm i @anglar/core,
     npm i @angular/common,
     npm i @angular/http,
     npm i @angular/router
    

    After installing this also showing error just remove few words then again add that word its working.

提交回复
热议问题