Skip to content

Issue with nextjs 15.2.4 #8

@jszsj

Description

@jszsj

I'm building a scene using nextjs v15.2.4 and react 19 with react-nodetoy:

<mesh rotation={[-Math.PI / 2, 0, 0]} position={[0, 0.1, 0]}>
    <planeGeometry attach='geometry' args={[300, 400]} />
    <NodeToyMaterial data={waterShader} />
</mesh>

I got the error: Error: R3F: NodeToyMaterial is not part of the THREE namespace! ..., then I added this line:

extend({ NodeToyMaterial })

another error popped up: Error: target is not a constructor

Is the current version incompatible with the latest Next.js and React?

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