ERROR in node_modules/@angular/material/table/cell.d.ts -Typescript version problem angular

后端 未结 2 963
暗喜
暗喜 2021-01-24 15:46

Im using angular in my project so I faced this issue I tried to downgrade my typscript to 3.9.7 but still not working here is my package.json dpendencies.

相关标签:
2条回答
  • 2021-01-24 16:32

    I removed material folder and I install npm install @angular/material@^10.1.3 and downgrade @angular/core to 10.1.3 I created new project with the latest version of angular and I copy the cell.d.ts file and paste it in my project & thats working now

    0 讨论(0)
  • 2021-01-24 16:40

    For me a reinstall with the latest versions helped:

    npm remove @angular/material @angular/cdk
    npm i @angular/material@latest @angular/cdk@latest
    

    Replace npm with yarn in case you have yarn.

    0 讨论(0)
提交回复
热议问题