react-three-next
react-three-next copied to clipboard
Could this example be updated to Next.js 16 + React 19.2?
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.
Hi, could you please share your updated example repo? I'm struggling to get the app running when updating the dependencies.
I ended up doing this work and started another repo to add more to the starter. - https://github.com/ewjdev/r3f-starter