Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

    "private": true,
  "dependencies": {
    "@angular-devkit/core": "^10.1.3",
    "@angular-devkit/schematics": "^10.1.3",
    "@angular-material-components/datetime-picker": "^4.0.2",
    "@angular/animations": "^10.1.3",
    "@angular/cdk": "^10.0.0",
    "@angular/common": "^10.1.3",
    "@angular/compiler": "~10.1.3",
    "@angular/core": "^10.1.3",
    "@angular/forms": "^10.1.3",
    "@angular/google-maps": "^10.0.1",
    "@angular/material": "^10.0.0",
    "@angular/platform-browser": "^10.1.3",
    "@angular/platform-browser-dynamic": "~10.1.3",
    "@angular/router": "^10.1.3",
    "@angular/typescript": "^2.0.0-5d0e199",
    "@auth0/angular-jwt": "^4.0.0",

can someone give me an idea to solve this issue enter image description here

like image 705
Kindth Avatar asked Apr 20 '26 05:04

Kindth


2 Answers

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.

like image 92
fhery021 Avatar answered Apr 21 '26 18:04

fhery021


Add this to tsconfig.json:

{
  "compilerOptions": {
    "skipLibCheck": true
  }
}

For more information follow the link: https://github.com/akveo/nebular/issues/2501#issuecomment-960650663

like image 44
Alessandro S. Avatar answered Apr 21 '26 18:04

Alessandro S.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!