`ng update @angular/fire` stops before the v21 migration when it runs Angular CLI 22.3
I maintainer di solito rispondono entro 3 giorni
Una pull request collegata è già stata integrata.
- #3793 di @armando-navarro — integrata
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- angular, firebase, typescript
- Ambito
- developer-experience, tooling
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 7.8k
- Fork
- 2.2k
- Merge medio
- 2g 14h
- PR unite (30g)
- 19
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di angular/angularfire
-
Use `TransferState` to hand server-rendered Firestore data to the browser, instead of reading every document twiceForse di nuovo libera @armando-navarro l’ha presa 43 giorni fa e non c’è nessuna pull request aperta. Apertacomp: firestore comp: ssr priority: P0 (critical) type: feature version: current (v17+)
angular/angularfire#3757 · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
Six `firebase` entry points have no `@angular/fire` equivalent, so their exports are unreachableForse di nuovo libera @armando-navarro l’ha presa 43 giorni fa e non c’è nessuna pull request aperta. Apertacomp: core type: feature
angular/angularfire#3755 · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
Angular 22 release pleaseAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
angular/angularfire#3737 · 2 commenti · 24 reazioni ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
angular/angularfire#3715 ·
I maintainer di solito rispondono entro 3 giorni
-
comp: build/pipeline type: RFC / discussion / question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
angular/angularfire#3699 · 17 commenti · 4 reazioni ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di angular/angularfire
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
siyuan-note/siyuan#20517 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NaturalIntelligence/fast-xml-parser#890 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
zsviczian/obsidian-excalidraw-plugin#3000 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
pnpm/get.pnpm.io#68 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nuxt-modules/better-auth#578 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno