pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.78k stars 156 forks source link

useThree is not a function #174

Closed dustinlacewell closed 3 years ago

dustinlacewell commented 3 years ago

When using @react-three/fiber 6.0.1 and @react-three/cannon 0.6.1, the following error happens:

TypeError (0 , $csb__reactthreefiber.useThree) is not a function at K (https://lfl4q.csb.app/node_modules/reactthree/cannon/dist/index.js:177:69

It's reproduced in the sandbox below:

https://codesandbox.io/s/r3f-cannon-instanced-physics-forked-lfl4q?file=/src/index.js