error TS2307: Cannot find module '@angular/core'

后端 未结 4 1227
你的背包
你的背包 2020-12-16 19:43

So I get the following error when I tried building my application again:

ERROR in ../../../node_modules/@angular/cdk/a11y/typings/aria-describer/aria-describer

4条回答
  •  再見小時候
    2020-12-16 19:50

    This problem apparently was being caused by the CDK and material modules of angular. I don't exactly know how it happend but I fixed it.

    I fixed it by following an answer in this github issue: https://github.com/angular/material2/issues/8306

    Solution

    To fix this issue you have to run the following commands:

    npm install --save @angular/material @angular/cdk
    rm -rf node_modules
    npm install
    

提交回复
热议问题