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:

firefox / zen:

Current workaround that im using
downgrade r3f to v8
The problem
using the latest nextjs version (15.1.7) and the latest r3f (9.0.2), here's my code:
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
Canvasand 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:

firefox / zen:

Current workaround that im using
downgrade r3f to v8