title: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore with proper imports
body: <p>I am getting this weird error in firebase when trying to query my firestore database.
  I am initializing my app with the following code:</p>
  <pre><code>const app = initializeApp(firebaseConfig);
  const auth = getAuth(app);
  const db = getFirestore(app);
  </code></pre>
  <p>my initializations:</p>
  <pre><code>import { initializeApp } from &quot;firebase/app&quot;;
  import {GoogleAuthProvider, getAuth, signInWithPopup, signInWithEmailAndPassword, createUserWithEmailAndPassword, sendPasswordResetEmail, signOut} from &quot;firebase/auth&quot;;
  import { getFirestore, query, getDocs, collection, where, addDoc } from &quot;firebase/firestore&quot;;
  </code></pre>
  <p>I also try to run the query in these two ways and get the same error for both.</p>
  <pre><code>let userDocs = query(collection(db, 'users'))
  </code></pre>
  <p>and</p>
  <pre><code>let userDocs = (collection(db, 'users'))
  </code></pre>
  <p>Any help would be great</p>