Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

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

Fermée
#3,789 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 3 jours

Une pull request liée a déjà été fusionnée.

  • #3793 par @armando-navarro — fusionnée

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
angular, firebase, typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
7.8k
Forks
2.2k
Merge moyen
2 j 14 h
PR mergées (30 j)
19

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de angular/angularfire

Toutes les issues de angular/angularfire

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.