Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`ng update @angular/fire` stops before the v21 migration when it runs Angular CLI 22.3

クローズ
#3,789 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

comp: schematics type: bug version: current (v17+)

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 update without a version on the Angular packages runs a temporary copy of the newest Angular CLI. With --next that is 22.3.0-next.0 today.
  • @angular-devkit/schematics 22.3.0-next.0 adds an exports map that lists ./tasks but not ./tasks/index.js. 22.2.1 and 21.2.25 have no exports map.
  • Three of AngularFire's schematic bundles require @angular-devkit/schematics/tasks/index.js: setup/index.js, deploy/builder.js and update/v21/index.js. Loaded with 22.3.0-next.0, each fails with ERR_PACKAGE_PATH_NOT_EXPORTED.
  • Angular CLI's own ng update --next listing suggests running ng update @angular/fire --next.
  • Plain ng update @angular/fire also runs the newest CLI, so it will fail the same way once Angular CLI 22.3 is published as latest.
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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/angularfire のほかの issue

angular/angularfire の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。