[bug]: type error: animated group rotation prop does not accept array or euler object #2312
Open
1 of 5 tasks
Labels
template: bug
This issue might be a bug
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.4
What's Wrong?
When I use spring to animate the rotation of a three.js object, typescript throws a type error when the
rotation
prop is provided as an array while using theposition
prop works as expected with an array but applying the same logic to rotation results in a type mismatch.To Reproduce
Here is a simple example
Expected Behaviour
I expect the code to compile with no issues since it also works at runtime.
Link to repo
See
To Reproduce
sectionThe text was updated successfully, but these errors were encountered: