このエラーは、実行時にアプリを angular 8 から angular 9 に更新しているときに発生します。
エラー: - 未処理の Promise 拒否: R3InjectorError[MatCommonModule -> HighContrastModeDetector -> HighContrastModeDetector -> HighContrastModeDetector]: NullInjectorError: HighContrastModeDetector のプロバイダーがありません! ; ゾーン: ; タスク: Promise.then ; 値: NullInjectorError: R3InjectorError[MatCommonModule -> HighContrastModeDetector -> HighContrastModeDetector -> HighContrastModeDetector]: NullInjectorError: HighContrastModeDetector のプロバイダーがありません! エラー:- core.js:41544 不明なエラー: 構成が異なるプラットフォームが作成されました。まず破壊してください。
"dependencies": {
"@angular/animations": "^9.0.0",
"@angular/cdk": "^9.0.0",
"@angular/common": "^9.0.0",
"@angular/compiler": "^9.0.0",
"@angular/core": "^9.0.0",
"@angular/flex-layout": "^9.0.0-beta.29",
"@angular/forms": "^9.0.0",
"@angular/material": "^9.0.0",
"@angular/platform-browser": "^9.0.0",
"@angular/platform-browser-dynamic": "^9.0.0",
"@angular/router": "^9.0.0",
"@asymmetrik/ngx-leaflet": "^2.6.1",
"@types/jquery": "^3.3.32",
"angular-moment": "^1.3.0",
"angular-web-storage": "^7.0.0-beta.1",
"core-js": "^3.6.4",
"jquery": "^3.4.1",
"jsplumb": "^2.12.9",
"leaflet": "^1.6.0",
"moment": "^2.24.0",
"ng2-panzoom": "^2.2.2",
"ng7-dynamic-breadcrumb": "^2.0.0",
"ngx-cacheable": "^1.4.0",
"ngx-socket-io": "^3.0.1",
"ngx-spinner": "^8.1.0",
"ngx-toastr": "^10.0.4",
"rxjs": "^6.5.4",
"socket.io-client": "^2.3.0",
"tslib": "^1.10.0",
"zone.js": "^0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.1",
"@angular/cli": "^9.0.1",
"@angular/compiler-cli": "^9.0.0",
"@angular/language-service": "^9.0.0",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "^2.0.8",
"@types/leaflet": "^1.5.8",
"@types/node": "^12.12.27",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.4.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.5.2",
"protractor": "^5.4.3",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.7.5"
}