react-three-fiber: React 18 bug: Cannot create property '_updatedFibers

See https://github.com/facebook/react/issues/24049

I ran into it with

    "react": "^18.0.0-rc.2",
    "@react-three/fiber": "^8.0.0-beta.3",

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 8
  • Comments: 29 (7 by maintainers)

Most upvoted comments

use react 18 and react-three-fiber works like charm

R3F depends on react 18 as a peer dependency, looks like you’re on an older version.

Nevermind, false alarm

Hello - this is not fixed. I am running 18.0.2 of React and am getting the same error -

Uncaught TypeError: Cannot create property ‘_updatedFibers’ on number ‘0’

Any update on this please?

See facebook/react#24049

I ran into it with

    "react": "^18.0.0-rc.2",
    "@react-three/fiber": "^8.0.0-beta.3",

that 's worked for my project …tnx

My version number is:

@react-three/fiber”: “^8.0.19”, “react”: “17.0.2”,

wrong react version, use 18 instead

How did you fix that, I got this error. when I remove the Canvas which was imported from @react-three/fiber. it works good. but I need that Canvas n my code image image