-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useFrame hook not working #2
Comments
Hi sewonist, Tommaso |
Hi. I found reason. It is occurred when using latest threejs and fiber. It works with fiber 7.0.26 but doesn't work with fiber 8.8.10. I don't know why. Fiber should be changed something. I will research more. |
Hi Tommaso, I figure out this issue. I've updated dependencies in react-three-mind and rebuild it. And I removed dependencies for react-three-mind in my project. I use just react-three-mind package. Now it works for me. I commit it to forked my repositories. Sewon |
Ok, I've updated the dependencies on the main repository too and changed the code accordingly (the latest version of @react-three/fiber removed attachObjects in favour of attach). Closing the issue. |
Removing the r3f dependency does not work for me. I'm using nextjs with node 17.0.1 |
Update: it works when using npm but not when using yarn. |
I definitely need to look into this. I'm still experimenting with the new PR for mind-ar mentioned here #4 that might improve compatibility across the board, will keep you posted, I'm reopening the issue to remind myself :-) |
Hi
I just keep working with fiber and mind-ar.
I've add 3d model and animation with useFrame. Unfortunatley, useFrame hook didn't work with below error.
Uncaught Error: R3F: Hooks can only be used within the Canvas component!
When I put useFrame directly inside
Canvas
it was working. But not working insdieARView
.I know
ARView
wrappedCanvas
. So it's really weird.Can you use useFrame inside
ARView
?The text was updated successfully, but these errors were encountered: