use-cannon | 👋💣 physics based hooks for @ react-three/fiber | Frontend Framework library
kandi X-RAY | use-cannon Summary
kandi X-RAY | use-cannon Summary
React hooks for cannon-es. Use this in combination with react-three-fiber.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of use-cannon
use-cannon Key Features
use-cannon Examples and Code Snippets
Community Discussions
Trending Discussions on use-cannon
QUESTION
I cannot for the life of me figure out why I keep getting this error. It more than likely being a simple oversight is making it that much worse.
I created a new React app using CRA, installed @react-three/fiber, @react-three/cannon
, and three, and copied the code example from the use-cannon docs into my App component to play around with. But, I keep getting this error. I've tried re-installing the package but that did nothing. I tried scrapping the app and starting a new one. Nothing. I'm getting the same error using code sandbox, too.
My package.json dependencies look like this:
...ANSWER
Answered 2021-Aug-12 at 05:26I've just noticed new release of @react-three/cannon 2.6.0
is faulty. try downgrade version of @react-three/cannon
to 2.5.0
and error will be gone. I saw the same error and fixed it by changing the version. we may need to raise an issue at r3f github repository.
running demo:
(the demo with r3f cannon 2.5.0)
https://codesandbox.io/s/elegant-sinoussi-zjzhj?file=/src/Cube.tsx
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install use-cannon
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page