`ng update @angular/fire` stops before the v21 migration when it runs Angular CLI 22.3
Los mantenedores suelen responder en 3 días
Ya se ha fusionado un pull request relacionado.
- #3793 de @armando-navarro — fusionado
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- angular, firebase, typescript
- Área
- developer-experience, tooling
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.8k
- Forks
- 2.2k
- Merge medio
- 2 d 14 h
- PR fusionados (30 d)
- 19
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de angular/angularfire
-
Use `TransferState` to hand server-rendered Firestore data to the browser, instead of reading every document twiceQuizá libre de nuevo @armando-navarro la tomó hace 40 días y no hay ningún pull request abierto. Abiertocomp: firestore comp: ssr priority: P0 (critical) type: feature version: current (v17+)
angular/angularfire#3757 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
Six `firebase` entry points have no `@angular/fire` equivalent, so their exports are unreachableQuizá libre de nuevo @armando-navarro la tomó hace 40 días y no hay ningún pull request abierto. Abiertocomp: core type: feature
angular/angularfire#3755 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
Angular 22 release pleaseAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
angular/angularfire#3737 · 2 comentarios · 24 reacciones ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
angular/angularfire#3715 ·
Los mantenedores suelen responder en 3 días
-
comp: build/pipeline type: RFC / discussion / question
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
angular/angularfire#3699 · 17 comentarios · 4 reacciones ·
Los mantenedores suelen responder en 3 días
Todos los issues de angular/angularfire
Issues similares
-
bug go
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
genkit-ai/genkit#6761 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NousResearch/hermes-agent#136483 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
facioquo/stock-indicators-dotnet#2316 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vercel-labs/skills#2460 ·
Los mantenedores suelen responder en 1 día