Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#3,647 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
angular, typescript
领域
frontend

调研方向

从链接的 docs/zones.md 和 Angular 18-to-19 upgrade 输出开始,使用报告中的 Angular 19.2.7 和 Angular CLI 19.2.8 版本。复现该警告并确定触发它的 Firebase 调用;done 应包括已确认的影响以及有文档记录且不重复的解决方案,或为 maintainers 提供清晰的复现步骤。

由索引模型根据 Issue 内容生成。

描述

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

Image

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

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

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.

主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
3 天 6 小时
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

angular/angularfire 的其他 Issue

查看 angular/angularfire 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。