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

Add a warning about the latest next/react version? #3401

Open
sdraper69 opened this issue Nov 24, 2024 · 5 comments
Open

Add a warning about the latest next/react version? #3401

sdraper69 opened this issue Nov 24, 2024 · 5 comments

Comments

@sdraper69
Copy link

Please correct me if wrong, but it seems like r3f doesn't like using the very latest next js. Could I suggest updating the getting started/installation page on the website to reflect this? I just spent ages going back and forth before figuring out I should not be doing npx create-next-app@latest but rather use a 14.x.x version instead.

@webplantmedia
Copy link

I'm having the same issue. I'm trying to update to nextjs 15, but getting an error with the react-reconciler. "TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner')". Any update on this?

@annschulte
Copy link

annschulte commented Dec 3, 2024

Same issue here any udpates would be amazing. Thanks!

@mishazawa
Copy link

mishazawa commented Dec 3, 2024

@krispya
Copy link
Member

krispya commented Dec 6, 2024

Hi everyone, the problem isn't Next 15 exactly but React 19. A lot of libraries will have similar issues when upgrading from one React major to another. To get R3F working with React 19 you can use our RC: https://www.npmjs.com/package/@react-three/fiber/v/9.0.0-rc.1

@verekia also made a useful set of tests for various combinations of libraries: https://github.com/verekia/three-gpu-ecosystem-tests

@krispya
Copy link
Member

krispya commented Dec 6, 2024

A warning has been added to the readme!

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

5 participants