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: Next.js 15 & React 19 incompatibility #551

Open
thejustinwalsh opened this issue Oct 30, 2024 · 3 comments
Open

Bug: Next.js 15 & React 19 incompatibility #551

thejustinwalsh opened this issue Oct 30, 2024 · 3 comments
Labels
v8 Issues related to Pixi React v8

Comments

@thejustinwalsh
Copy link

thejustinwalsh commented Oct 30, 2024

Current Behavior

Next.js 15 is using React 19.0.0-rc when you use the app folder, and all versions of @pixi/react are using internal api's that break in React 19.

See:

Expected Behavior

@pixi/react v7 may need to it's peer dependencies updated to limit the range of react it is compatible with. i.e. 17-18
@pixi/react v8 should likely support React 18 & 19

Steps to Reproduce

Create a @pixi/react app using Next.js 15 and use the app router.
-or-
Create a @pixi/react app using React 19.

Environment

  • @pixi/react version: >=7.1.2
  • pixi.js version: >=7.4.2
  • React version: >=19.0.0-rc
  • ReactDOM version: >=19.0.0-rc

Possible Solution

pmndrs/react-three-fiber#3222 (comment)

Additional Information

Temporary workaround: downgrade to Next@^14.2.16.

@trezy trezy added the v8 Issues related to Pixi React v8 label Nov 24, 2024
@trezy
Copy link
Collaborator

trezy commented Nov 24, 2024

I've been dreading this. I'm not sure it's going to be possible to support both versions of React with a single version of the lib. This is deffo on my radar, tho.

@linonetwo
Copy link

Or limit to React 19, because React 19 is public now.

@Fatdrfrog
Copy link

Second workaround: use pages routing instead of app

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

No branches or pull requests

4 participants