Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Compo
Unanswered
Schweizer Laufhund posted this in #help-forum
Schweizer LaufhundOP
Not sure where this error is coming from
8 Replies
Schweizer LaufhundOP
idk what this error means and how to debug it
Spotted Rail
Are u using any auth library like next auth or any server actions where the action returns data which you might be using on the client?
@Spotted Rail Are u using any auth library like next auth or any server actions where the action returns data which you might be using on the client?
Schweizer LaufhundOP
yes i have api calls
to my database which is a server action and that returns the data to my client
i noticed the issue popped up when i turned my server component to a server action
Spotted Rail
Well it seems it's your server action causing issue
This happened with me as well when I was trying to return some data from server action
Console.log your return data in server action and let me know what it is