Firebase – how can i use serverTimestamp in angular/Fire in the compat mode
I have tried import firebase from 'firebase/compat/app'; import 'firebase/compat/firestore'; const firestore = firebase.firestore; this.form = this.builder.group({ items:[data.items, null], dateReported:[firestore.FieldValue.serverTimestamp(), Validators.required], ....}) i get this error: ERROR FirebaseError: Function WriteBatch.update() called with invalid data. Unsupported field value: a custom sl object…