Firebase V9 addDoc not returning success or failiure or writing to database

Auth related functions work, but with firestore I cant get anything to happen. No errors no successes returned by try catch. I have created the firestore in the firebase console, The created accounts show successfully from auth, but I just can’t get anything to happen in firestore database

export const myApp = initializeApp(firebaseConfig);
// firebase.firestore().settings({ experimentalForceLongPolling: true });

export const db = getFirestore(myApp);
export const auth = getAuth(myApp);
export const logout = signOut;

// const dbInstance = collection(database, 'users');

export const addUser = async () => {
  try {
    console.log("Firing add function");
    const docRef = await addDoc(collection(db, "users"), {
      first: "Ada",
      last: "Lovelace",
      born: 1815,
    });
    console.log("Document written with ID: ", docRef);
    // console.log("Document written with ID: ", docRef.id);
  } catch (e) {
    console.error("Error adding document: ", e);
  }
};