`ng update @angular/fire` stops before the v21 migration when it runs Angular CLI 22.3
Maintainer antworten meist innerhalb von 3 Tagen
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
- Bereich
- developer-experience, tooling
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
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7.8k
- Forks
- 2.2k
- Ø Merge
- 3 T. 2 Std.
- Gemergte PRs (30 T.)
- 13
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus angular/angularfire
-
A 20.x release after 21.0.0 would move `latest` back to 20.x, and `next` stays on the release candidateEvtl. vergeben @armando-navarro hat das vor 1 Tag übernommen. Offencomp: build/pipeline type: bug version: current (v17+)
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
angular/angularfire#3790 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
docs: the App Check guide does not cover server-side renderingEvtl. vergeben @armando-navarro hat das vor 11 Tagen übernommen. Offencomp: app-check comp: docs comp: ssr type: chore version: current (v17+)
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
angular/angularfire#3774 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
A canary published right after another can read a stale `canary` tagEvtl. vergeben @armando-navarro hat das vor 1 Tag übernommen. Offencomp: build/pipeline type: bug version: current (v17+)
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 65/100
angular/angularfire#3791 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Use `TransferState` to hand server-rendered Firestore data to the browser, instead of reading every document twiceEvtl. wieder frei @armando-navarro hat das vor 38 Tagen übernommen, und es ist kein Pull Request offen. Offencomp: firestore comp: ssr priority: P0 (critical) type: feature version: current (v17+)
angular/angularfire#3757 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Six `firebase` entry points have no `@angular/fire` equivalent, so their exports are unreachableEvtl. wieder frei @armando-navarro hat das vor 38 Tagen übernommen, und es ist kein Pull Request offen. Offencomp: core type: feature
angular/angularfire#3755 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in angular/angularfire
Ähnliche Issues
-
First unknown-user login after boot is one scrypt run slower than a real user's wrong passwordOffenarea: backend bug priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
snapotter-hq/SnapOtter#2254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug ticket
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
cratestack/cratestack#1154 ·
Maintainer antworten meist innerhalb von 1 Tag
-
server 消息处理器 cmd 分支补显式错误回报——竞态非法命令现走未处理拒绝Evtl. vergeben @openaddr hat das heute übernommen. Offenready-for-agent refactor wayfinder:task
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
openaddr/dafung-web#428 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Flaky: mongodb-memory-server 'Port already in use' when another process starts a mongod concurrentlyOffenarea:testing bug effort:S priority:P2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
lens:agent lens:process process
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
thebristolsound/birdbrain#1772 ·
Maintainer antworten meist innerhalb von 1 Tag