-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
courses/react-next-firebase/auth-google-signin/ #785
Comments
Im trying to run this but the if (!firebase.apps.length) { |
cannot import firebase hence firebase is undefined. |
I had the same problem as above. It seemed to be failing to find the For me I was able to work around this by downgrading from firebase v9 to the v8 with the following. Things worked after that. Seems like there were breaking changes in v9 for this tutorial.
|
I'm having the same issues as the other 3 commenters. I love your videos Jeff, but this course is dated. |
Hey guys i figured it out. All you have to do is Change your imports from "import firebase from 'firebase/app' " |
Also, if you close out of the authentication before you complete, you will get an error that crashes the app. All you have to do is wrap your async function in a try catch block. where you pass the error through the catch block like this. |
I am getting this error when trying to load /enter -- TypeError: firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__.default.auth.googleAuthProvider is not a constructor |
Nevermind above comment, g in google needs to be 'G'oogle. |
HEADS UP - Anyone reading this past today - Refer back to the bottom of the #8 Firebase Setup to get around teh firebase 9 errors. There's a complete write up in Github. |
Google SignIn
Authenticate via OAuth with Google SignIn
https://fireship.io/courses/react-next-firebase/auth-google-signin/
The text was updated successfully, but these errors were encountered: