Skip to content

Angular10 - Loading chunk firebase-analytics failed #2575

@kousenlsn

Description

@kousenlsn

Version info

Angular: 10.0.5 / 10.0.1 / 10.0.0

Firebase: 7.19.0 / 7.15.1

AngularFire: 6.0.2 / 6.0.3-canary.93912bc

Other (e.g. Ionic/Cordova, Node, browser, operating system): Any browser, Mac

How to reproduce these conditions

  • Create a new Angular project via CLI (ng new test-project) (Angular CLI 10.0.4)
  • Install firebase and Angular/fire
  • Import to app.modules, and to a constructor the analytics service.
  • (optional) add to angular.json "allowedCommonJsDependencies": [ "firebase/app", "@firebase/auth"] to disable ES module / commonjs module warning at the console.

Additional:
I tried to use npm i @angular/fire@canarywithout any success, following #2526, and even downgrading the versions of both Angular and firebase.

I also tried to disable vendor-chunk and common-chunk, and some multiple other options.

Debug output

Screen Shot 2020-08-25 at 10 56 48

Screen Shot 2020-08-25 at 10 58 33

Expected behavior

Imports and works ?!

Actual behavior

Error at the console, can't use the service.

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