angular / angular/angularfire

Firebase API called outside injection context when i upgrade angular version 18 to 19

Đang mở
#3,647 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
22 giờ 28 phút
Pull request đã merge (30 ngày)
6

Mô tả

I install Angular 19 and i show me this warnking **Firebase API called outside injection context:**

![Image](https://github.com/user-attachments/assets/d84567de-1ea0-4f60-b016-8f1714bdb6ad)

When happened this:
I upgrade of Angular 18 a Angular 19 and when i change of version.

**Version:**
Angular CLI: 19.2.8
Node: 22.14.0
Package Manager: npm 11.3.0
OS: win32 x64

Angular: 19.2.7
... common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1902.8
@angular-devkit/build-angular 19.2.8
@angular-devkit/core 19.2.8
@angular-devkit/schematics 19.2.8
@angular/cli 19.2.8
@angular/ssr 19.2.8
@schematics/angular 19.2.8
rxjs 7.8.2
typescript 5.7.3
zone.js 0.15.0

![Image](https://github.com/user-attachments/assets/d538f014-38d2-48ff-b912-c3323f9763ac)

C:\pr360-portal-v1\pr360>ng update
Using package manager: npm
Collecting installed dependencies...
Found 31 dependencies.
We analyzed your package.json and everything seems to be in order. Good work!

NOTE:
I don't snow how fix this thouble. In the documentation not is clear https://github.com/angular/angularfire/blob/main/docs/zones.md

![Image](https://github.com/user-attachments/assets/7605fe84-e4a7-454d-bed1-2bda67a6f859)

I don't see which is the impact of no fix this warn. but if is very noisy.

Someone people suggestion add a code. but is very repetitive and not is the solution finish.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với docs/zones.md được liên kết và đầu ra của Angular 18-to-19 upgrade, sử dụng các phiên bản được báo cáo là Angular 19.2.7 và Angular CLI 19.2.8. Tái hiện cảnh báo và xác định lệnh gọi Firebase kích hoạt cảnh báo đó; done phải bao gồm tác động đã được xác nhận và một cách giải quyết được ghi lại, không lặp lại, hoặc một cách tái hiện rõ ràng dành cho maintainers.

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

Đánh giá

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

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.