Skip to content

angularFire 19 upgrade crashes when deploying to production #3592

Open

Description

@LanderBeeuwsaert

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

Activity

  1. google-oss-bot commented on Dec 15, 2024

    @google-oss-bot

    This issue does not seem to follow the issue template. Make sure you provide all the required information.

  2. changed the title [-]Angular 19 upgrade crashes when deploying to production[/-] [+]angularFire 19 upgrade crashes when deploying to production[/+] on Dec 16, 2024
  3. jamesdaniels commented on Dec 16, 2024

    @jamesdaniels
    Contributor

    Since this is an @angular/core I'd recommend filing a bug over in https://github.com/angular/angular. Is it crashing during the SSR or CSR cycle? Node and browser versions will be helpful to debug.

  4. LanderBeeuwsaert commented on Dec 17, 2024

    @LanderBeeuwsaert
    Author

    We don't use SSR, so just "normal" CSR.
    I've created a bug report in the angular repo:
    angular/angular#59213
    node: 22.4.0
    browser: Version 131.0.6778.140 (Officiële build) (64-bits)

  5. LanderBeeuwsaert commented on Dec 26, 2024

    @LanderBeeuwsaert
    Author

    @jamesdaniels I have researched further but haven't been able to make a reproduction that showcases the issue.
    I tried but I need to be missing something.

    What I found is that it only happens if I enable optimization in angular.json
    Also, the moment I comment out the subscription to AngularFire Auth authState it goes away as well
    Image
    The stacktrace with sourcemaps gives:
    Image
    Image
    Image
    Image

  6. Tashuan commented on Jan 8, 2025

    @Tashuan

    any updates on this issue?

  7. LanderBeeuwsaert commented on Feb 24, 2025

    @LanderBeeuwsaert
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions