react-three-next icon indicating copy to clipboard operation
react-three-next copied to clipboard

Could this example be updated to Next.js 16 + React 19.2?

Open eliotgevers opened this issue 1 month ago • 2 comments

Lots of people use it together with Next.js, and an up-to-date example repo is really helpful then!

I updated my own project to Next.js 16 with React 19.2 today, and it worked, except for the fact that I needed to add this to my globals.d.ts file:

import { ThreeElements } from "@react-three/fiber";

declare module "react/jsx-runtime" {
  namespace JSX {
    interface IntrinsicElements extends ThreeElements {}
  }
}

I am using the same tsconfig and default config as the create-next-app template.

eliotgevers avatar Nov 08 '25 16:11 eliotgevers

Hi, could you please share your updated example repo? I'm struggling to get the app running when updating the dependencies.

robalola avatar Nov 18 '25 15:11 robalola

I ended up doing this work and started another repo to add more to the starter. - https://github.com/ewjdev/r3f-starter

ewjdev avatar Nov 20 '25 03:11 ewjdev