-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
[v3] TypeError: firebase.auth is undefined #709
Comments
I copied your code, modified a little bit on what's missing from what you provided, and it runs fine even got through logging in. How did you call My recommendation about posting code, please name your files and their path, not just detail on what it does. |
@illuminist Thanks for your recommendation, I updated the original post according to it. This is how I'm calling it from one of my next js page :
|
One more file please, |
@illuminist Many thanks for your help. Here is the file :
|
Still unable to reproduce an error. Could you take my repro https://github.com/illuminist/rrf-issue709 and run? Maybe find some difference in our code too. |
@illuminist After a lot of trials I finally found the origin of this error thanks to your repo : I both had the @firebase/auth and firebase npm packages in my package.json, which is the only difference between your code and mine. Somehow (honestly not really sure how as my imports doesn't include the @) that was conflicting. A clean re-install of my dependencies without @firebase/auth solved the issue. I'm really thankful for your time ! |
Hello everyone,
I followed the v3.0.0 getting started guide and the Auth recipe. I'm using Next JS (with the redux-thunk recipe) and it seems that firebase is correctly initialized, however when calling firebase.login as per the Auth recipe, I get the following error :
This is my next.js app wrapper :
src/app/pages/_app.js
And my firebase setup (with some SSR specific code) :
src/app/lib/with-redux-store.js
And finally the root reducer :
src/app/redux/reducers.js
SSR redux setup is working perfectly fine and I did install the latest firebase npm package. Any idea of what's going on here ?
Many thanks
The text was updated successfully, but these errors were encountered: