I can't call the firebase.firestore().settings() function as I'm getting some "requires its first argument to be of type object" error:
firebase.firestore().settings({ timestampsInSnapshots: true })
I don't understand this error, but as a workaround I tried to create an object thus:
const firestoreSettings = Object.create({ timestampsInSnapshots: true })
firebase.firestore().settings(firestoreSettings)
This didn't work either.
Where does this error come from and how to solve it?