Closed jeremybanka closed 3 weeks ago
1. FAQs
👍
2. Describe the bug
framer-motion's new definition of ForwardRefComponent has broken compatibility with React.ForwardRefExoticComponent
framer-motion
ForwardRefComponent
React.ForwardRefExoticComponent
3. CodeSandbox
CodeSandbox (seems like you'll need to create a fork to run the TS language server...?)
4. Steps to reproduce
Steps to reproduce the behavior:
motion.div
$$typeof
5. Expected behavior
No typescript error, as in framer-motion@11.1.3
framer-motion@11.1.3
6. Video or screenshots
7. Environment details
TypeScript 5.4.5
PR here: https://github.com/framer/motion/pull/2631
Thanks for the PR! Will publish now
1. FAQs
👍
2. Describe the bug
framer-motion
's new definition ofForwardRefComponent
has broken compatibility withReact.ForwardRefExoticComponent
3. CodeSandbox
CodeSandbox (seems like you'll need to create a fork to run the TS language server...?)
4. Steps to reproduce
Steps to reproduce the behavior:
React.ForwardRefExoticComponent
.motion.div
to that component.$$typeof
in framer'sForwardRefComponent
.5. Expected behavior
No typescript error, as in
framer-motion@11.1.3
6. Video or screenshots
7. Environment details
TypeScript 5.4.5