馃憻 Reproduction steps
Get the user in a server action
const user = await account.get();
and return the value to the client.
Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported. {} at ignore-listed frames { digest: '2206141838' }
After some investigation that is caused by the new bigint library used in 22.1.0.
user [Object: null prototype] { '$id': '', '$createdAt': '', '$updatedAt': '', name: '' }
the returned object is now a [Object: null prototype].
馃憤 Expected behavior
Return: {}
馃憥 Actual Behavior
Return: [Object: null prototype] {}
馃幉 Appwrite version
Different version (specify in environment)
馃捇 Operating system
MacOS
馃П Your Environment
No response
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
馃憻 Reproduction steps
Get the user in a server action
const user = await account.get();and return the value to the client.
Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported. {} at ignore-listed frames { digest: '2206141838' }After some investigation that is caused by the new bigint library used in 22.1.0.
user [Object: null prototype] { '$id': '', '$createdAt': '', '$updatedAt': '', name: '' }the returned object is now a [Object: null prototype].
馃憤 Expected behavior
Return: {}
馃憥 Actual Behavior
Return: [Object: null prototype] {}
馃幉 Appwrite version
Different version (specify in environment)
馃捇 Operating system
MacOS
馃П Your Environment
No response
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?