-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
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
🐛 [cloud_firestore] Getting LegacyJavaScriptObject error with Timestamps #12249
Comments
@darshankawar
I'll try to create a runnable code sample 👋 |
Have the same error in my function
|
Here is the code that can reproduce the error: Object:
Code:
Log:
|
I encountered the same error working with timestamp. |
Just updated all dependencies to the latest versions, but the problem with nested Map with DateTime is still present. Returns an error: "Expected a value of type 'DateTime?', but got one of type 'LegacyJavaScriptObject'. " The problem is marked as resolved.
|
It's working for me now.
Make sure you run |
Unfortunately, not working
Steps:
Result:
Occurs when trying to convert to DateTime
|
[Platform: Web]
Unable to decode/infer Timestamp objects, throws
Error: Expected a value of type 'Timestamp', but got one of type 'LegacyJavaScriptObject'
even though when printed, the map showsTimestamp(seconds=1703827286, nanoseconds=951000000)
butcreatedTimestamp.runtimeType
printsLegacyJavaScriptObject
Flutter dependencies
Rendering: canvaskit
The text was updated successfully, but these errors were encountered: