title: `Firebase` package was successfully found. However, this package itself specifies a `main` module field that could not be resolved
body: <p>I'm trying to read and write to firestore, use firebase's authentication, and firebase's storage within a expo managed react-native application.</p>
  <p>Full Error:</p>
  <pre><code>While trying to resolve module `firebase` from file `C:\Users\joshu\Desktop\VSProjects\VolleyballConnect\firebase.js`, the package `C:\Users\joshu\Desktop\VSProjects\VolleyballConnect\node_modules\firebase\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\joshu\Desktop\VSProjects\VolleyballConnect\node_modules\firebase\index`. Indeed, none of these files exist:
  
    * C:\Users\joshu\Desktop\VSProjects\VolleyballConnect\node_modules\firebase\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
    * C:\Users\joshu\Desktop\VSProjects\VolleyballConnect\node_modules\firebase\index\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  </code></pre>
  <p>My firebase config file:</p>
  <pre><code>import firebase from &quot;firebase&quot;;
  import { initializeApp } from &quot;firebase/app&quot;;
  import &quot;firebase/firestore&quot;;
  import &quot;firebase/auth&quot;;
  import &quot;firebase/storage&quot;;
  
  // I'm using the example key here, I have the correct config
  const firebaseConfig = {
    apiKey: &quot;api-key&quot;,
    authDomain: &quot;project-id.firebaseapp.com&quot;,
    databaseURL: &quot;https://project-id.firebaseio.com&quot;,
    projectId: &quot;project-id&quot;,
    storageBucket: &quot;project-id.appspot.com&quot;,
    messagingSenderId: &quot;sender-id&quot;,
    appId: &quot;app-id&quot;,
    measurementId: &quot;G-measurement-id&quot;,
  };
  
  if (firebase.apps.length === 0) {
    initializeApp(firebaseConfig);
  }
  
  const db = firebase.firestore();
  const auth = firebase.auth();
  const storage = firebase.storage();
  
  export { db, auth, storage };
  </code></pre>
  <p>I installed the <code>firebase</code> package with:</p>
  <pre><code>expo install firebase
  </code></pre>
  <p>Any help would be greatly appreciated. Thank you!</p>