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

后端 未结 7 1317
清酒与你
清酒与你 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:14

    I had this problem but didn't have a version conflict in my package.json.

    My package-lock.json was somehow out of sync with package json though. Deleting and regenerating it worked for me.

提交回复
热议问题