Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Incompatibilities with newer Next.js canaries. #3021

Open
jimapl opened this issue May 18, 2024 · 2 comments
Open

[BUG] - Incompatibilities with newer Next.js canaries. #3021

jimapl opened this issue May 18, 2024 · 2 comments

Comments

@jimapl
Copy link

jimapl commented May 18, 2024

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

Scherm­afbeelding 2024-05-18 om 14 44 21

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

Scherm­afbeelding 2024-05-18 om 14 44 21

Operating System Version

Mac

Browser

Chrome

Copy link

linear bot commented May 18, 2024

@wingkwong
Copy link
Member

wingkwong commented May 21, 2024

The nextjs canary version requires react 19, which seems react-aria currently doesn't support yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants