Angular

Angular アプリケーションを Angular7 から Angular8 へバージョンアップ

Angular7 で作成したアプリケーションを Angular8 にバージョンアップしてみました。

Angular の公式ドキュメンテーションに記載されているアップデートコマンドを実行しました。

ng update
https://angular.jp/cli/update

ng update @angular/cli @angular/core

すると、次のエラーが発生しました。

Package "@angular/compiler-cli" has an incompatible peer dependency to "@angular/compiler" (requires "9.0.0-next.5", would install "8.2.5")
Package "@angular/compiler-cli" has an incompatible peer dependency to "@angular/compiler" (requires "9.0.0-next.5" (extended), would install "8.2.5").
Package "@angular/fire" has an incompatible peer dependency to "zone.js" (requires "^0.8.0", would install "0.9.1").
Incompatible peer dependencies found. See above.

ウェブ上で色々と調べてみると、--force オプションを付けることで解消できるようでしたので、試してみました。

ng update @angular/cli @angular/core --force

すると、無事バージョンアップを完了することができました。

-Angular