TypeScript errors with React 19 and Framer Motion 12.23.12 #3375
Unanswered
doriancottin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m using Framer Motion 12.23.12 with React 19 and TypeScript 5.9.2. On macOS, my editor shows type errors for all motion.* components, e.g.,
Property 'animate' does not exist on type 'IntrinsicAttributes & Omit<HTMLMotionProps<"header">, "ref"> & RefAttributes'.
I’ve tried:
Cleaning node_modules and lock files
Reinstalling dependencies
Downgrading TypeScript
Comparing with Windows, where it works fine
It seems the TypeScript types for Motion are not compatible with React 19. This blocks development on macOS.
Can you confirm if React 19 is officially supported for TS users, and if not, is there a plan to update the types?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions