banking icon indicating copy to clipboard operation
banking copied to clipboard

i got this error in signup -->

Open pihu26112005 opened this issue 1 year ago • 2 comments

Warning: Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props. {account: {client: ...}, database: ..., user: ...} ^^^^^^^^^^^^^ POST /sign-up 200 in 30ms ⨯ 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 stringify () digest: "3170067014"

i thing the issue is with const { account,database } = await createAdminClient();

pihu26112005 avatar Jul 04 '24 06:07 pihu26112005

Are you returning the stringify JSON from createAdminClient()?

ironlionm4n avatar Jul 12 '24 00:07 ironlionm4n

Also getting this error, returning return parseStringify(newUserAccount); in user.actions.ts

Simplereally avatar Aug 24 '24 13:08 Simplereally