Open ChadStrat opened 3 years ago
I have the exact same problem .. any help please
I went over to node_module/@nativescript/firebase/firebase.ios.js.
changed
firebase.firestore.batch = () => { ensureFirestore(); return new firebase.firestore.WriteBatch(FIRFirestore.firestore().batch()); };
to
firebase.firestore.batch = () => { ensureFirestore(); return firebase.firestore.WriteBatch(FIRFirestore.firestore().batch()); };
Solved my problem
ahhhh yes. just what I was looking for. do we know if someone is working on a PR to fix this?
node_module/@nativescript/firebase/firebase.ios.js.
firebase.firestore.batch = () => { ensureFirestore(); return new firebase.firestore.WriteBatch(FIRFirestore.firestore().batch()); };
should be
firebase.firestore.batch = () => { ensureFirestore(); return firebase.firestore.WriteBatch(FIRFirestore.firestore().batch()); };
I get the following error on iOS only (not android) when I attempt to set up a batch.
code causing error:
I feel like I am missing something really obvious. Any help appreciated.