Skip to content

v9 of r3f not working at all #3471

Description

@narasaka

The problem

using the latest nextjs version (15.1.7) and the latest r3f (9.0.2), here's my code:

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

export default function Home() {
  return (
    <div>
      <Canvas />
    </div>
  );
}

the error for me (using chrome): Error: Failed to load external module @react-three/fiber: TypeError: Cannot read properties of undefined (reading 'S')

my actual code has a bunch more going on in Canvas and the upgrade to v9 completely broke it, and i am quite sure that this is not a "me problem" because the docs website has the same error.

chromium-based browsers seem to have this error:
Image

firefox / zen:
Image

Current workaround that im using

downgrade r3f to v8

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