skip to Main Content

Issue with importing AngularFirestoreModule: "This type parameter might need an `extends firebase.firestore.DocumentData` constraint."

Hi I have a problem with connecting Firebase (Firestore) to my Angular App. Thats the first time I am trying to connect firebase, so i followed a tutorial from Google. https://developers.google.com/codelabs/building-a-web-app-with-angular-and-firebase#10 In step 11 I have to import AngularFirestoreModule, which…

VIEW QUESTION

Firebase – How to run a function first before updating the array in react JS?

const handleItinerary = (e, type) => { var index = parseInt(e.target.name); let arr = [...itinerary]; if (type === "imageUrl") { const date = new Date().getTime(); const storageRef = ref(storage, `${date}`); uploadBytes(storageRef, e.target.files[0]).then((snapshot) => { getDownloadURL(storageRef).then((downloadURL) => { arr[index]["imageUrl"] = downloadURL;…

VIEW QUESTION
Back To Top
Search