Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#3,789 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

@armando-navarro arbeitet bereits daran.

Seit 08.10.2026.

  • #3793 von @armando-navarro — offen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
angular, firebase, typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
7.8k
Forks
2.2k
Ø Merge
3 T. 2 Std.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus angular/angularfire

Alle Issues in angular/angularfire

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.