-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
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
TypeError: app.auth is not a function #1240
Comments
I found a few problems with this issue:
|
Same problem here. If i update to 5.5.1 the same error message appears. Even when stripping my code and only implementing the @angular/fire Auth example. |
Hi @mehmet2006, @jbweb, I tried firebase 5.5.1 with @angular/fire 5.0.0, and auth works fine for me. You said firebase 5.4.2 works fine, so it might not be the problem - did you import AngularFireAuthModule ? Otherwise can you please provide detailed steps to reproduce? thanks |
Hi @Feiyang1 , and in my component I have imported AngularFireAuth and auth; Like I said, my app is working correctly with these imports in firebase 5.4.2, but throws error in 5.5.1. If you check release notes, last two updates has "typings are created in the wrong location", and "typings for the firebase package were referenced incorrectly" for other packages. I believe Auth package still needs a fix. |
Found (my/the) problem!!! I also tried building an app from scratch, using my existing app as reference. This way it worked fine! Then i checked the differences in package-lock.json and found A LOT of minor version differences for firebase! |
@jbweb it solved my problem too. thanks |
Thank you for this! (And curse you npm :)) |
The solution of @jbweb worked for me as well. |
First |
I'm still having trouble with this. My lib versions: "firebase": "^5.9.3", Error:
|
Dear Team, I updated my Angular 7.2.12 to latest (I perform regular updates). I am using @angular/fire (5.1.2) for Google OAuth & Firebase (5.9.4). After the recent updates, I am getting following error while running the application. As of now, no build errors. Can't pinpoint the error with Augury, since the application is not booting up and Augury is considering this project as not a Angular project. Error- AppComponent.html:1 ERROR TypeError: app.auth is not a function Please help. Thank You |
Please open a new issue with steps to reproduce. You are less likely to get help from a closed issue. |
I've solved with this comment |
I got this error when I upgraded to Firebase 5.5.1
But same code works when I downgrade to Firebase 5.4.2 (no error)
ERROR Error: Uncaught (in promise): TypeError: app.auth is not a function
TypeError: app.auth is not a function
at auth.js:12
Firebase 5.5.1
@angular/fire 5.0.0
The text was updated successfully, but these errors were encountered: