react-three-fiber icon indicating copy to clipboard operation
react-three-fiber copied to clipboard

Type instantiation is excessively deep and possibly infinite.

Open ggquicky opened this issue 3 months ago • 1 comments

I'm using: "@react-three/drei": "9.114.6", "@react-spring/three": "^10.0.3", "@react-three/fiber": "8.18.0", "@types/three": "0.180.0", "three": "0.180.0"

I just updated and am getting a TS error when I add textures as a spread operator.

Type instantiation is excessively deep and possibly infinite.

Image

ggquicky avatar Sep 30 '25 21:09 ggquicky

You are using animated -> jsx -> r3f -> three and destructuring some other object into it. My guess this is an upstream issue that something else is inferencing types in three.

If you can replicate in a CSB we can take a look

DennisSmolek avatar Dec 10 '25 07:12 DennisSmolek