角度9:NullInjectorError:HighContrastModeDetector没有提供程序

时间:2020-07-07 04:25:00

标签: angular9

嗨,我在项目中运行子应用程序时遇到此错误。

NullInjectorError: R3InjectorError(userManagementSharedModule)[MatCommonModule -> HighContrastModeDetector -> HighContrastModeDetector -> HighContrastModeDetector]: 
  NullInjectorError: No provider for HighContrastModeDetector!

在我的项目中,当我尝试运行一个高于错误的子应用程序时,有5个以上的子应用程序。

我的package.json放在这里。

"dependencies": {
    "@agm/core": "~1.1.0",
    "@angular/animations": "~9.0.6",
    "@angular/cdk": "^9.1.2",
    "@angular/cli": "^9.1.2",
    "@angular/common": "^9.0.6",
    "@angular/compiler": "^9.0.6",
    "@angular/core": "^9.0.6",
    "@angular/forms": "^9.0.6",
    "@angular/http": "^7.2.16",
    "@angular/localize": "^9.0.6",
    "@angular/material": "^9.1.2",
    "@angular/platform-browser": "^9.0.6",
    "@angular/platform-browser-dynamic": "^9.0.6",
    "@angular/router": "^9.0.6",
    "@fullcalendar/core": "^4.4.0",
    "@ng-bootstrap/ng-bootstrap": "^6.0.0",
    "@types/date-fns": "^2.6.0",
    "angular-calendar": "^0.28.5",
    "angular-dual-listbox": "^5.0.1",
    "angular-gridster2": "^9.1.0",
    "angular-resize-event": "^1.2.1",
    "angular2-draggable": "^2.3.2",
    "angular2-fullcalendar": "^1.0.19",
    "angular2-multiselect-dropdown": "^4.6.3",
    "angular2-uuid": "^1.1.1",
    "angular7-csv": "^0.2.12",
    "bn-ng-idle": "^1.0.1",
    "bootstrap": "4.4.1",
    "core-js": "^3.6.4",
    "rxjs-compat": "^6.2.0",
    "sweetalert2": "9.10.1",
    "tslib": "^1.11.1",
    "web-animations-js": "^2.3.2",
    "xlsx": "^0.15.6",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.900.6",
    "@angular/compiler-cli": "^9.1.0",
  }

有人帮助我解决了这个问题

0 个答案:

没有答案