Skip to content

ESBuild - Firebase/Firestore data is only shown after I manipulate something in the dom #25701

Closed
@10eputzen

Description

@10eputzen

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

After changing the builder from

"builder": "@angular-devkit/build-angular:browser"
to
"builder": "@angular-devkit/build-angular:browser-esbuild"

I experience a very weird behavior for my data that I get from firestore in my Angular App in Development [it works fine on production!].

The data is loaded (I can see it in the console) but it would not show in the html template.
If I resize the page or click any button on it, the data will suddenly appear.
I already tried changing between RXJS and Signals to deliver the data to my component, but only going back to webpack fixes the issue.

This is how I call an instance of firestore in my dataservice

const app = initializeApp(firebaseConfig);
const db = getFirestore(app);

Minimal Reproduction

  1. Change the builder in angular.json from

"builder": "@angular-devkit/build-angular:browser"

to

"builder": "@angular-devkit/build-angular:browser-esbuild"

  1. Load any data to your template via Firestore

Exception or Error

There is no error - just no data in the template

Your Environment

@angular-devkit/architect       0.1602.0
@angular-devkit/build-angular   16.2.0
@angular-devkit/core            16.2.0
@angular-devkit/schematics      16.2.0
@angular/cli                    16.2.0
@schematics/angular             16.2.0
rxjs                            7.8.1
typescript                      5.1.6
zone.js                         0.13.1

Anything else relevant?

It works fine on production (firebase hosting)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: investigationRequires some digging to determine if action is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions