Replies: 1 comment 5 replies
-
|
The methods such as import { initializeApp } from 'firebase/app'
import { getFirestore } from 'firebase/firestore'
import { addDoc, collection, serverTimestamp } from 'firebase/firestore'
const app = initializeApp({
// ...
})
const db = getFirestore(app)
const res = await addDoc(collection(db, 'users'), { name: 'sample-user' }) // This is not working
console.log('After addDoc', res) // This code is not excuted |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We just released 9.0.0-beta.2 with bug fixes and enhancements:
@firebase/auth. Version 9 Typings for auth.ProviderId #4853@firebase/databaseisSupported()for@firebase/messaging-compatonSnapshot(), which resulted inunknownsnapshot data type in@firebase/firestore. onSnapshot() results inunknownsnapshot data type #4812@firebase/firestoreand@firebase/databasework correctly with asynchronously loaded/initialized@firebase/auth@firebase/messaging/swto expose service worker API@firebase/firestoreand@firebase/firestore/liteBeta Was this translation helpful? Give feedback.
All reactions