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

[React v19] Components cannot be used as JSX components #1853

Open
CHE1RON opened this issue Oct 28, 2024 · 5 comments
Open

[React v19] Components cannot be used as JSX components #1853

CHE1RON opened this issue Oct 28, 2024 · 5 comments

Comments

@CHE1RON
Copy link

CHE1RON commented Oct 28, 2024

Hey there,
since I could not find any issue on the topic, let me share my experience with the upcoming React v19 and your awesome react-virtualized library:

Screenshot 2024-10-28 at 11 16 32

Several components, such as InfiniteLoader & Grid, are seemingly incompatible with React's latest changes.

Steps to reproduce

  1. Install React v19, following the official upgrade guide.
  2. Try to build project / library.
@ringge
Copy link

ringge commented Oct 28, 2024

I'm using Nextjs 15 with React v19 and have exact same issue

@baba43
Copy link

baba43 commented Oct 30, 2024

@ringge did you solve this issue?

@ringge
Copy link

ringge commented Oct 31, 2024

@ringge did you solve this issue?

Hi not yet, I couldn't think of any way to solve it. Had to temporarily switch back to Next 14

@CHE1RON
Copy link
Author

CHE1RON commented Oct 31, 2024

@baba43 you mean besides adding @ts-ignore / @ts-expect-error statements, right? 😅

@CHE1RON
Copy link
Author

CHE1RON commented Nov 6, 2024

Either the latest rc version of React 19 OR switching moduleResolution to 'Node' fixed it for me 😉

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

No branches or pull requests

3 participants