error TS1086: An accessor cannot be declared in an ambient context in Angular 9

后端 未结 7 1359
清酒与你
清酒与你 2021-02-03 18:14

I\'m learning Angular Material and I\'m getting this error when importing { MatButtonModule } from \"@angular/material/button\".

From what I read in other answers, it lo

7条回答
  •  故里飘歌
    2021-02-03 19:05

    Adding skipLibCheck: true in compilerOptions inside tsconfig.json file fixed my issue.

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

提交回复
热议问题