-
Notifications
You must be signed in to change notification settings - Fork 930
Uncaught TypeError: e.auth.addAuthTokenListener is not a function #5018
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
Comments
I am also facing this issue. Here is a minimal repo similar to my project reproducing the issue: https://github.com/jsakas/firebase-test-sakas It's a firebase, typescript, webpack project with minimal dependencies. |
We also see the same error message after upgrading to 8.6.7. It was 8.2.0 before and was working properly. |
Downgraded to 8.6.5 and everything looks fine. "_this.auth.addAuthTokenListener is not a function" This was the problem as mentioned above. |
Same when upgrading to 8.6.7 from 8.4.2 with an app using multiple app instances. The error message was:
Immediately followed by:
8.6.5 works fine. |
I also have this issue with the same error messages as above. When I removed my firebase app initialization of |
I got the same error when I installed firebase 8.6.2 Same as @philsouth47 , firestore initialization is the cause. I tried 8.6.5, 8.6.7, it does not fix it. |
Reverting from "^8.6.7" to "8.6.5" worked for me |
Thanks for the report. I was able to reproduce the error using the sample project created and shared by @jsakas. I also confirmed that SDK version 8.6.5 worked fine. I'm trying to get the common denominator here. For those who are getting the similar error, did you use webpack? I tried using a non webpack project and the SDK version 8.6.7 worked fine. |
I am using webpack. Don't know if you saw the detail in the original report, but there's this:
One thing I recall seeing is that not only was the parameter named Maybe an issue with minification? Kinda guessing, really. |
Thanks for the confirmation @tomhicks! We will check this out and update this thread if we have any information to share. |
confirm that rolling back to 8.6.5 solved the problem |
Just wanted to add that I'm also receiving this same error but am not using webpack. Only using a fairly simple Rollup pipeline. |
I'm still having this issue on a new project instance of nuxt with @nuxtjs/axios. Been dealing with it since the latest update. |
Project was created with Here is my dependency list
|
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Crash on startup with error
Uncaught TypeError: e.auth.addAuthTokenListener is not a function
Steps to reproduce:
Upgraded a project to 8.6.7 from 8.6.3, and getting the following error as firestore is initialised:
By stopping the debugger, I can see the minimised code something like this:
The problem is that the
t
parameter istrue
whereas I presume it's supposed to be an auth instance.Note:
Something interesting when I was investigating...I put my firebase version back to 8.6.3 and rannpm install
again, but the problem remained. My assumption is that there's some dependency that wouldn't have gone back down by going from 8.6.7 to 8.6.3 that has the problem.That was all nonsense. I was editing a different project's
package.json
!The text was updated successfully, but these errors were encountered: