Я пытаюсь использовать угловой материал 7.3.1 в своем проекте.Внешний интерфейс является угловым, а внутренний - ASP.NET.Ниже я перечислил все свои зависимости, которые я использую, но я продолжаю получать эти странные сообщения об ошибках (см. Рисунок).
Мой пакет.json
"dependencies": {
"@angular/common": "^7.0.0",
"@angular/compiler": "^7.0.0",
"@angular/core": "^7.0.0",
"@angular/forms": "^7.0.0",
"@angular/http": "^7.0.0",
"@angular/platform-browser": "^7.0.0",
"@angular/platform-browser-dynamic": "^7.0.0",
"@angular/router": "^7.0.0",
"@angular/service-worker": "^7.0.0",
"@angularclass/hmr": "^2.1.3",
"@types/moment": "^2.13.0",
"angular-froala-wysiwyg": "^2.8.5",
"bcryptjs": "^2.4.3",
"bootstrap": "4.1.3",
"core-js": "^2.5.7",
"font-awesome": "^4.7.0",
"jquery": "^3.3.1",
"lodash": "^4.17.11",
"moment": "^2.22.2",
"qs": "^6.5.2",
"rxjs": "^6.3.3",
"tether": "1.4.5",
"zone.js": "^0.8.26",
"@aspnet/signalr": "^1.1.2",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0",
"aspnet-prerendering": "^3.0.1"
},
"devDependencies": {
"@angular/cli": "7.0.2",
"@angular/compiler-cli": "^7.0.0",
"@angular/language-service": "^7.0.0",
"@types/express": "^4.16.0",
"@types/jasmine": "~2.8.9",
"@types/jasminewd2": "~2.0.5",
"@types/jquery": "^3.3.21",
"@types/lodash": "^4.14.117",
"@types/mongoose": "^5.2.19",
"@types/morgan": "^1.7.35",
"@types/node": "~10.12.0",
"all-contributors-cli": "^5.4.1",
"codelyzer": "~4.5.0",
"concurrently": "^4.0.1",
"jasmine-core": "~3.2.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^1.3.1",
"protractor": "~5.4.1",
"ts-node": "^7.0.1",
"tslint": "~5.11.0",
"typescript": "^3.1.3",
"@angular-devkit/build-angular": "~0.10.2"
}
Угловая информация:
Angular CLI: 7.0.2
Node: 11.10.0
OS: win32 x64
Angular: 7.2.6
Ошибка:
Но еслиЯ использую материал 5.2.5, он работает.Однако мне нужны некоторые функции, которые доступны только в более новой версии.Ниже приведены зависимости, которые я использовал для материала 5.2.5:
"dependencies": {
"@angular/animations": "^5.2.0",
"@angular/cdk": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/material": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/platform-server": "^5.2.0",
"@angular/router": "^5.2.0",
"@aspnet/signalr": "^1.1.2",
"@nguniversal/module-map-ngfactory-loader": "^5.0.0",
"aspnet-prerendering": "^3.0.1",
"bootstrap": "^3.4.1",
"core-js": "^2.6.5",
"rxjs": "^5.5.12",
"zone.js": "^0.8.29"
},
"devDependencies": {
"@angular/cli": "^1.7.4",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "^2.8.16",
"@types/jasminewd2": "^2.0.6",
"@types/node": "^6.14.3",
"codelyzer": "^4.5.0",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.5",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.4.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
}
Я попробовал все, но ничего не работает, если кому-то нужна дополнительная информация, пожалуйста, спросите.