Skip to content

First layout not working on Next.js 14.2.23 - react-dom.development.js:17497 Uncaught Error: Element type #165

@LrLamonier

Description

@LrLamonier

My project uses libraries that are not ready for React 19, therefore I am using React 18, Next.js v. 14.2.23, React Three Fiber 8.17.10, and React Three uikit 0.8.4.

When trying to reproduce the first layout example

<Suspense fallback={null}>
    <Canvas
        style={{
          position: "fixed",
          width: "100%",
          height: "100vh",
          top: 0,
          left: 0,
        }}
        gl={{ localClippingEnabled: true }}
    >
        <Root sizeX={2} sizeY={1} flexDirection="row">
            <Container flexGrow={1} backgroundColor="red" />
        </Root>
    </Canvas>
</Suspense>

I get the following error:

Image

The component is a client component with "use client";.

The problem still occurs in a brand new Next project.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions