我将我的角度项目升级到7.1.4。 升级后,在“ @ angular / cdk / stepper”中找不到“ STEPPER_GLOBAL_OPTIONS”
有我的package.json
试图从node_modules删除所有软件包并运行npm install
"dependencies": {
"@angular/animations": "^7.1.4",
"@angular/cdk": "^7.0.3",
"@angular/common": "^7.1.4",
"@angular/compiler": "^7.1.4",
"@angular/core": "^7.1.4",
"@angular/forms": "^7.1.4",
"@angular/http": "^7.1.4",
"@angular/material": "^7.2.0",
"@angular/platform-browser": "^7.1.4",
"@angular/platform-browser-dynamic": "^7.1.4",
"@angular/router": "^7.1.4",
"angular-progress-bar": "^1.0.9",
"core-js": "^2.5.7",
"jquery": "^3.3.1",
"material-design-icons-iconfont": "^4.0.3",
"material-icons": "^0.2.3",
"ngx-bootstrap": "^3.0.1",
"ngx-toastr": "^9.1.1",
"popper.js": "^1.14.4",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"zone.js": "^0.8.26"
},
我该如何解决?
答案 0 :(得分:1)
确保您的 @ angular / Material 和 @ angular / cdk 程序包处于同一版本级别。
这是我今天早晨发生的,最终我看到我的@ angular / Material软件包为7.2.0,而我的@ angular / cdk为7.1.4。我将@ angular / cdk更新为7.2.0,警告消失了。
答案 1 :(得分:0)