use-firebase-auth icon indicating copy to clipboard operation
use-firebase-auth copied to clipboard

TypeError: r.auth is not a function

Open deanc opened this issue 5 years ago • 2 comments

Not sure yet why this is happening. I took your sandbox code and put it in line for line in to the latest create-react-app, but I'm getting this error.

I will investigate.

deanc avatar Dec 13 '19 20:12 deanc

@deanc Had the exact same problem. Figured that when installing the latest release of the firebase package, which is 7.6.0, this problem occurs. A workaround is to install the version which is defined as peerDependency in use-firebase-auth: [email protected].

akoenig avatar Dec 17 '19 19:12 akoenig

In the end @akoenig I ended up using this: https://gist.github.com/deanc/76a3de4592c70b36627eb3eb33dca011

deanc avatar Dec 17 '19 21:12 deanc