Closed matthova closed 7 years ago
Thanks for the report :) I'm guessing the test fails because it doesn't use a browser with a 3d context... but it would make sense to suppress this anyway, or at least use a shim for RAF.
Linking #164 to it to which I have added some more comments :)
When used with create-react-app, requestAnimationFrame throws an error.
Note basic coverage test "it('renders without crashing')" will fail as of react-three-renderer v3.1.0. Proposed solution is to wrap 'react-three-renderer/lib/React3Instance.js' line 262 in the following code:
Note, this might not be the right solution, but it did make the errors go away. @toxicFork would love to get your take on the error.
Here are the steps to recreate the error: