We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The helper in the article is:
/* helpers */ this.fieldValue = app.firestore.FieldValue;
(note - uppercase FieldValue)
Then in messages, you use:
createdAt: this.props.firebase.fieldValue.serverTimestamp(),
This gives:
FirebaseError: Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field createdAt)
I have tried uppercasing as:
createdAt: this.props.firebase.FieldValue.serverTimestamp(),
TypeError: Cannot read property 'serverTimestamp' of undefined
In each case, the timestamp does not work.
How do I do I record and display a date?
The text was updated successfully, but these errors were encountered:
A solution that works was finally found and is recorded here. I don't understand it but am EXHAUSTED from focusing on this problem.
https://stackoverflow.com/questions/59277859/react-display-a-firestore-timestamp
I hope this helps someone else
Sorry, something went wrong.
No branches or pull requests
The helper in the article is:
/* helpers */
this.fieldValue = app.firestore.FieldValue;
(note - uppercase FieldValue)
Then in messages, you use:
This gives:
FirebaseError: Function DocumentReference.set() called with invalid data. Unsupported field value: undefined (found in field createdAt)
I have tried uppercasing as:
This gives:
TypeError: Cannot read property 'serverTimestamp' of undefined
In each case, the timestamp does not work.
How do I do I record and display a date?
The text was updated successfully, but these errors were encountered: