We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular: 6.0.1 Firebase: 5.0.2 AngularFire: 5.0.0-rc.8.0
ng build --prod
ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'AngularFireModule' was called.
Build should run successfully.
Build fails only in production (AOT)
I don't think the Angular compiler can analyze code dynamically in initializeApp. These lines are the source of the problem
initializeApp
https://github.com/angular/angularfire2/blob/a8414f5d62ec073db760e0b7e9346e4d946bd3a3/src/core/firebase.app.module.ts#L50-L51
Require the second arg to initializeApp to be a FirebaseAppConfig object and remove the string union type.
FirebaseAppConfig
The text was updated successfully, but these errors were encountered:
Just noticed this is a duplicate. Will close for #1635
Sorry, something went wrong.
No branches or pull requests
Version info
Angular: 6.0.1
Firebase: 5.0.2
AngularFire: 5.0.0-rc.8.0
How to reproduce these conditions
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 problemhttps://github.com/angular/angularfire2/blob/a8414f5d62ec073db760e0b7e9346e4d946bd3a3/src/core/firebase.app.module.ts#L50-L51
Possible Solution?
Require the second arg to
initializeApp
to be aFirebaseAppConfig
object and remove the string union type.The text was updated successfully, but these errors were encountered: