node_modules/@angular/material/table/cell.d.ts 中的错误 -Typescript 版本问题角度 [英] ERROR in node_modules/@angular/material/table/cell.d.ts -Typescript version problem angular
问题描述
我在我的项目中使用了 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
推荐答案
我删除了 material 文件夹并安装了 npm install @angular/material@^10.1.3 并将@angular/core 降级到 10.1.3我使用最新版本的 angular 创建了新项目,然后复制 cell.d.ts 文件并将其粘贴到我的项目中 &正在工作
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
这篇关于node_modules/@angular/material/table/cell.d.ts 中的错误 -Typescript 版本问题角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!