angularFire 19 upgrade crashes when deploying to production

Open
#3,592 6 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, firebase, typescript

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.

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
Image
Image

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.