Run ng add @angular/fire@next or npm i firebase @angular/fire --save or npm i firebase @angular/fire@next --save;
Use AngularFireModule.initializeApp(environment.firebase) in app.module.ts
Run ng build --prod;
Debug output
Errors in the JavaScript console
No errors, just freezes.
Expected behavior
To create production build.
Actual behavior
Freezes and uses all available resources of the machine where it runs.
Additional info
The build process freezes right after the "modern build" of the app. If I disable default "modern build" in tsconfig with "target": "es5", then it builds successfully, but this is not the expected behaviour.
Also, if I remove AngularFireModule everything builds just fine.
Version info
Angular: 8
Firebase: 6.1.0
AngularFire: 5.2.0-rc.3
OS: MacOS Mojave 10.14.5
Node: 12.3.1
How to reproduce these conditions
Steps to set up and reproduce
ng new app
;ng add @angular/fire@next
ornpm i firebase @angular/fire --save
ornpm i firebase @angular/fire@next --save
;AngularFireModule.initializeApp(environment.firebase)
inapp.module.ts
ng build --prod
;Debug output
Errors in the JavaScript console
No errors, just freezes.
Expected behavior
To create production build.
Actual behavior
Freezes and uses all available resources of the machine where it runs.
Additional info
The build process freezes right after the "modern build" of the app. If I disable default "modern build" in tsconfig with
"target": "es5"
, then it builds successfully, but this is not the expected behaviour.Also, if I remove
AngularFireModule
everything builds just fine.