`ng update @angular/fire` stops before the v21 migration when it runs Angular CLI 22.3
メンテナーはふだん 3 日以内に返信
関連するプルリクエストがすでにマージされています。
- #3793 @armando-navarro による — マージ済み
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- angular, firebase, typescript
調査の方向性
Read the three affected bundles named in the issue: setup/index.js, deploy/builder.js, and update/v21/index.js. Compare their @angular-devkit/schematics/tasks/index.js usage with the 22.3.0-next.0 exports map. Done means ng update @angular/fire --next can load the v21 migration and complete without ERR_PACKAGE_PATH_NOT_EXPORTED; note that linked pull request #3793 is already open.
索引モデルが issue の本文から書いたものです。
説明
In an Angular 21 app, ng update @angular/fire --next installs 21.0.0-rc.1 and then stops with an error, so the v21 migration never runs. That migration is what moves the app's firebase dependency to ^12, among other changes.
Installing a temporary Angular CLI versioned next to perform the update.
...
Updating package.json with dependency @angular/fire to version 21.0.0-rc.1...
An unhandled exception occurred: Package subpath './tasks/index.js' is not defined by "exports" in .../node_modules/@angular-devkit/schematics/package.json
Details
ng updatewithout a version on the Angular packages runs a temporary copy of the newest Angular CLI. With--nextthat is 22.3.0-next.0 today.@angular-devkit/schematics22.3.0-next.0 adds anexportsmap that lists./tasksbut not./tasks/index.js. 22.2.1 and 21.2.25 have noexportsmap.- Three of AngularFire's schematic bundles require
@angular-devkit/schematics/tasks/index.js:setup/index.js,deploy/builder.jsandupdate/v21/index.js. Loaded with 22.3.0-next.0, each fails withERR_PACKAGE_PATH_NOT_EXPORTED. - Angular CLI's own
ng update --nextlisting suggests runningng update @angular/fire --next. - Plain
ng update @angular/firealso runs the newest CLI, so it will fail the same way once Angular CLI 22.3 is published aslatest.
Workaround
Name the version, for example ng update @angular/[email protected]. That form runs the project's own Angular CLI, and the migration runs.
- 主要言語
- TypeScript
- スター
- 7.8k
- フォーク
- 2.2k
- 平均マージ
- 2日 14時間
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
angular/angularfire のほかの issue
-
Use `TransferState` to hand server-rendered Firestore data to the browser, instead of reading every document twice再び着手できるかも @armando-navarro が 43 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンcomp: firestore comp: ssr priority: P0 (critical) type: feature version: current (v17+)
angular/angularfire#3757 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Six `firebase` entry points have no `@angular/fire` equivalent, so their exports are unreachable再び着手できるかも @armando-navarro が 43 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンcomp: core type: feature
angular/angularfire#3755 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
angular/angularfire#3737 · コメント 2 件 · リアクション 24 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
angular/angularfire#3715 ·
メンテナーはふだん 3 日以内に返信
-
comp: build/pipeline type: RFC / discussion / question
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
angular/angularfire#3699 · コメント 17 件 · リアクション 4 件 ·
メンテナーはふだん 3 日以内に返信
angular/angularfire の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
status:approved type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
stage:4
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ilan-pinto/roaring-lions#598 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Frontmatter next to `src:` is applied to every imported slide, not only the first (undocumented)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信