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
-
We just released 9.0.0-beta.2 with bug fixes and enhancements:
@firebase/auth
. Version 9 Typings for auth.ProviderId #4853@firebase/database
isSupported()
for@firebase/messaging-compat
onSnapshot()
, which resulted inunknown
snapshot data type in@firebase/firestore
. onSnapshot() results inunknown
snapshot data type #4812@firebase/firestore
and@firebase/database
work correctly with asynchronously loaded/initialized@firebase/auth
@firebase/messaging/sw
to expose service worker API@firebase/firestore
and@firebase/firestore/lite
Beta Was this translation helpful? Give feedback.
All reactions