Firebase dependencies not importing

Please provide the following:

  1. SDK Version: 42.0.4
  2. Platforms(Android/iOS/web/all): all
  3. firebase/auth

I am trying to use Google Authentication with Firebase as mentioned in this guide, although after installing the dependencies via expo install firebase, I am unable to import modules from firebase/auth. Calling the respective methods like const auth = getAuth(); results in an error:

TypeError: (0, _auth.getAuth) is not a function. (In '(0, _auth.getAuth)()', '(0, _auth.getAuth)' is undefined)

I am also unable to import modules from firebase/database, firebase/firestore etc.

I also tested it with a project that was set up using only JS but I experienced the same behaviour.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.