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

前端 未结 30 1150
佛祖请我去吃肉
佛祖请我去吃肉 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:20

    In the VSCode status bar, it must be showing typescript version - like this

    Clicking on that version number will show you this, different versions available.

    If you are using the VSCode version then switching to Workspace version solves the problem if it is VScode issue rather than your tsconfig.json (I am already using that one, so not highlighted)

提交回复
热议问题