Next.js Discord

Discord Forum

How to render Select in Table (Ant Design)

Unanswered
Red-breasted Sapsucker posted this in #help-forum
Open in Discord
Red-breasted SapsuckerOP
Hi there,
I'm having issues rendering a Select (https://ant.design/components/select) element in my Table (https://ant.design/components/table) using Ant Design UI Library.

Here's my code: https://pastebin.com/sVUuzE1G

I keep getting an error:

Unhandled Runtime Error
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
{title: "Action", key: ..., fixed: ..., width: ..., render: function}

Even though I have "use server" in the file.

Can anyone please point me in the right direction?

0 Replies