Questions tagged «angular-material»

Angular Material是Angular中Material Design的实现。不要将此标签用于AngularJS Material,这是旧AngularJS框架的Material Design实现。


2
错误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 …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.