Closed
Description
Version info
Angular: 6.0.1
Firebase: 5.0.2
AngularFire: 5.0.0-rc.8.0
How to reproduce these conditions
- Follow AngularFire2 setup instructions
- Run
ng build --prod
Debug output
ERROR in Error during template compile of 'AppModule'
Function calls are not supported in decorators but 'AngularFireModule' was called.
Expected behavior
Build should run successfully.
Actual behavior
Build fails only in production (AOT)
Problem
I don't think the Angular compiler can analyze code dynamically in initializeApp
. These lines are the source of the problem
Possible Solution?
Require the second arg to initializeApp
to be a FirebaseAppConfig
object and remove the string union type.
Metadata
Metadata
Assignees
Labels
No labels