angular / angular/angularfire

angularFire 19 upgrade crashes when deploying to production

Open
#3,592 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

This seems to be in angular/core
If we revert to firebase-js-sdk 10 and angularFire 18 the issue disappears.
It doesn't happen on our dev builds (esbuild) but it does happen when we deploy to production.
So my non-expert guess would be that treeshaking is somehow involved?

![Image](https://github.com/user-attachments/assets/8b275078-c9ea-48a9-add4-bc2efc71112a)
![Image](https://github.com/user-attachments/assets/e4fddddb-baa5-451f-991a-cb75dc7dd8d7)
![Image](https://github.com/user-attachments/assets/1797a7eb-f275-49e3-b919-b095f6bcb0dc)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the production deployment with firebase-js-sdk 10 and angularFire 19, then compare it with angularFire 18 and the dev esbuild build. Read the reported angular/core crash details in the attached images and investigate whether production tree-shaking triggers it. Done means the angularFire 19 upgrade deploys successfully without the production crash.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.