错误TS1086:无法在Angular 9的环境上下文中声明访问器
我正在学习Angular Material,从“ @ angular / material / button”导入{MatButtonModule}时遇到此错误。 从我在其他答案中看到的内容来看,这似乎是程序包兼容性问题,但我无法解决。 这是完整的错误 ERROR in node_modules/@angular/cdk/a11y/focus-trap/focus-trap.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@angular/cdk/a11y/focus-trap/focus-trap.d.ts(30,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@angular/cdk/a11y/focus-trap/focus-trap.d.ts(128,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/@angular/cdk/a11y/focus-trap/focus-trap.d.ts(129,9): error …