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

Open
#3,647 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
angular, typescript
Domain
frontend

Research direction

Start with the linked docs/zones.md and the Angular 18-to-19 upgrade output, using the reported Angular 19.2.7 and Angular CLI 19.2.8 versions. Reproduce the warning and identify the Firebase call that triggers it; done should include a confirmed impact and a documented, non-repetitive resolution or a clear reproduction for maintainers.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
7.8k
Forks
2.1k
Avg merge
2d 22h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from angular/angularfire

All issues in angular/angularfire

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.