Replies: 1 comment
-
your canvas does not contain a component that would be able to throw that warning. i take it you're calling useFrame outside, and that's not permitted: https://github.com/pmndrs/react-three-fiber/blob/master/api.md#hooks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using create-react-app and doing simple simulation of a table and paper, here is my code:
Now I want to do some physics which is why I need to use
useFrame
to step the World, unfortunately evenuseFrame(() => {})
throws "g is not a function" error, yup even when passing empty callback to it it throws the error.I don't know what is this "g"
threejs version: 120
react-three-fiber version: 5.0.1
create-react-app version: 3.4.3
react version: 16.13.1
Beta Was this translation helpful? Give feedback.
All reactions