首页 > 解决方案 > 错误:NullInjectorError:StaticInjectorError(AppModule)[A11yModule -> HighContrastModeDetector],Angular,

问题描述

main.ts:12 NullInjectorError: StaticInjectorError(AppModule)[A11yModule -> HighContrastModeDetector]: StaticInjectorError(Platform: core)[A11yModule -> HighContrastModeDetector]: NullInjectorError: 没有 HighContrastModeDetector 的提供者!在 NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (http://localhost:4200/vendor.js:54158:25) 在 resolveToken (http://localhost:4200 /vendor.js:65351:24) 在 tryResolveToken (http://localhost:4200/vendor.js:65295:16) 在 StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector。在 tryResolveToken (http://localhost:4200/vendor. js:65295:16) 在 StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (http://localhost:4200/vendor.js:

在此处输入图像描述

标签: angularng-zorro-antd

解决方案


推荐阅读