Open jimapl opened 3 months ago
The nextjs canary version requires react 19 rc, which seems react-aria currently doesn't support yet.
yeah it's going on : https://github.com/adobe/react-spectrum/pull/6437
react-spectrum just merged react 19 support @wingkwong
I'm also experiencing this issue on the latest RC versions. I tracked my issue down to the Dropdown. Even using the basic example Dropdown code in the docs throws it.
⨯ Internal error: Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, props, _owner, _store}). If you meant to render a collection of children, use an array instead.
"@nextui-org/react": "^2.4.2", "next": "^15.0.0-rc.0", "react": "^19.0.0-rc-6fb39ec9e9-20240621",
Yeah, only when you return a plain string it works. Any objects throws this. also the case for tooltip/popover and any other component basicly.
any progress?
up, any progress?
This issue has been marked as on hold. Here's the reasons.
I'm going to lock this conversation and will unlock it once we got some actual updates.
NextUI Version
2.3.6
Describe the bug
seems nextui is not working with the newer next.js canaries.
PopoverTrigger throws
"Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, props, _owner, _store}). If you meant to render a collection of children, use an array instead."
When any variable or children is present within, even a div. Only flat string are accepted See no issues on this topic on Github atm. But expect this will be a massive dealbreaker for many Works in 14.2.3, breaks from canary 66
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Install latest nextjs canary, for example. 14.3.0-canary-70.
Use a popover, tooltip or any other portal components where children are objects or components.
Expected behavior
It to work.
Screenshots or Videos
Operating System Version
Mac
Browser
Chrome