Open grigorzyapkov opened 9 months ago
having the same issue
Also having the same issue. I've noticed that this does not happen if used in a client component, but I don't see why this component would be client side only.
I have the same issue!!! This is the first time I use nextui. And the error information is hard to read and understand!
I have the same problem, any update?
I have the same problem, any update?
add "use client" at the header of the file. the problem will be resolved.
Im aware of this solution, I want tabs to work in server side component.
See: https://github.com/nextui-org/nextui/issues/1403
This issue has been here for a while now. They're waiting for the next react-aria update to address it.
Same problem
It would be great if server components could be supported. Of course 'use client' makes the error go away, but that basically prevents all of the contents not being rendered at all on the server, so crawlers will not see this content unless they use JS rendering.
I got this error when using Tabs component in Next js version 14.2.13 even mark the component as client still does not work
⨯ Error: Functions are not valid as a child of Client Components. This may happen if you return children instead of
NextUI Version
2.2.9
Describe the bug
Individually import Tabs component in a server side component causes an error.
import { Tab, Tabs } from '@nextui-org/tabs'
Uncaught Error: Unknown element <[object Object]> in collection.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
Should not throw an error.
Screenshots or Videos
No response
Operating System Version
any
Browser
Chrome