Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,789 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@armando-navarro đang làm issue này rồi.

Từ ngày 8/10/2026.

  • #3793 của @armando-navarro — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
angular, firebase, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/angularfire

Tất cả issue của angular/angularfire

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.