Replies: 2 comments
-
Did you ever find a solution to this error? I've stumbled across a similar issue with Framer Motion v9.0.0 and isolated the error to the 'repeatType' property. If I remove it then the error goes away. I have a work around as a solution but it would be good to know what's causing it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
const variants: Variants = { try this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an animation that works perfectly, but TypeScript is unhappy.
Am I doing something unsupported, or do the types need to be refined?
Code sandbox
I have the following variant animation:
And the following component:
The animation works: Framer Motion animates the mask between 0-10% in a loop as expected.
TypeScript gives the following error:
Without the keyframes, there is no TypeScript error, but obviously there'll be no animation.
Am I doing something unsupported, or do the types need to be refined?
Beta Was this translation helpful? Give feedback.
All reactions