将角度应用程序从6升级到10会在更新后产生很多错误

时间:2020-07-31 07:19:14

标签: javascript angular version ng-upgrade angular-upgrade

恳请提出升级我的应用程序的最佳方法,并分享如何解决此类对等依赖性问题:-

Package "ngx-chips" has an incompatible peer dependency to "@angular/animations" (requires "^8.0.0" (extended), would install "10.0.7").
Package "@ng-bootstrap/ng-bootstrap" has a missing peer dependency of "@angular/localize" @ "^10.0.0".
Package "@ng-idle/core" has an incompatible peer dependency to "@angular/common" (requires "^9.0.0", would install "10.0.7")
Package "@ng-idle/core" has an incompatible peer dependency to "@angular/core" (requires "^9.0.0", would install "10.0.7")
Package "@ng-idle/core" has an incompatible peer dependency to "tslib" (requires "^1.10.0", would install "2.0.0")
Package "@ng-idle/keepalive" has an incompatible peer dependency to "@angular/common" (requires "^9.0.0", would install "10.0.7")
Package "@ng-idle/keepalive" has an incompatible peer dependency to "@angular/core" (requires "^9.0.0", would install "10.0.7")
Package "@ng-idle/keepalive" has an incompatible peer dependency to "tslib" (requires "^1.10.0", would install "2.0.0")
Package "ng2-file-drop" has an incompatible peer dependency to "core-js" (requires "^2.4.1", would install "3.6.5").
Package "@ng-select/ng-select" has an incompatible peer dependency to "@angular/common" (requires ">=9.0.0 <10.0.0", would install "10.0.7")
Package "@ng-select/ng-select" has an incompatible peer dependency to "@angular/core" (requires ">=9.0.0 <10.0.0", would install "10.0.7")
Package "@ng-select/ng-select" has an incompatible peer dependency to "@angular/forms" (requires ">=9.0.0 <10.0.0", would install "10.0.7")
Package "ng-recaptcha" has an incompatible peer dependency to "@angular/core" (requires "^6.0.0 || ^7.0.0 || ^8.0.0", would install "10.0.7")
Package "copy-webpack-plugin" has a missing peer dependency of "webpack" @ "^4.37.0 || ^5.0.0".
Package "ngx-mask" has an incompatible peer dependency to "@angular/common" (requires "^9.1.0", would install "10.0.7")
Package "ngx-mask" has an incompatible peer dependency to "@angular/core" (requires "^9.1.0", would install "

1 个答案:

答案 0 :(得分:0)

升级Angular项目时,不建议跨多个主要版本进行迁移。我强烈建议您按照此处的更新指南进行操作:https://update.angular.io/