Next.js Discord

Discord Forum

Next throws null prototype unsupported although prisma findFirstOrThrow is used

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Greetings,

I am using prisma to query the user data with findFirstOrThrow, which doesn't return nor a class nor a null prototype.

Yet, i receive the error of "only plain object can be passed to client components from server components, classrs or null prototypes are not supported".

My prisma call in the server action returns either the user record object or a string error message.

What can i do to make it work without errors?

0 Replies