Skip to content

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

@eliotgevers

Description

@eliotgevers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions