【问题标题】:when i try to run my angular project i get these error当我尝试运行我的角度项目时,我收到了这些错误
【发布时间】:2021-03-25 11:24:03
【问题描述】:

错误:node_modules/@angular/material/radio/radio.d.ts:184:9 - 错误 TS2611:“禁用”被定义为“CanDisableRipple & HasTabIndex & MatRadioButtonBase”类中的属性,但在此处被覆盖'_MatRadioButtonBase' 作为访问器。

184 被禁用():布尔值; ~~~~~~~~

错误:node_modules/@angular/material/table/cell.d.ts:42:5 - 错误 TS2610:“名称”被定义为“CdkColumnDef”类中的访问器,但在“MatColumnDef”中被覆盖为实例属性。

42 名称:字符串; ~~~~

** Angular Live Development Server 正在监听 localhost:4200,在 http://localhost:4200/ 上打开浏览器 **

【问题讨论】:

    标签: angular angular-material


    【解决方案1】:

    尝试通过设置"useDefineForClassFields": true 来编辑您的tsconfig 文件。

    【讨论】:

    • 我会试试它不会正常运行
    猜你喜欢
    • 2019-11-05
    • 1970-01-01
    • 1970-01-01
    • 2022-11-25
    • 2017-11-18
    • 2023-03-22
    • 1970-01-01
    • 2022-07-07
    • 2020-12-12
    相关资源
    最近更新 更多