OrbitControls error #1720
Unanswered
a-line-melb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am running into an error when I import OrbitControls into my app. I have a Canvas component that export a Canvas, which contains a mesh. The last item before I close the canvas is my OrbitControls. Here is the full file:
When OrbitControls is not added, the canvas is working fine. When included, I am running into numerous errors in the console:
Uncaught Error: R3F: Hooks can only be used within the Canvas component!
at useStore (index-db8af450.esm.js:1615:21)
This error repeats a few times. Any idea how this can be resolved?
Beta Was this translation helpful? Give feedback.
All reactions