Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Property '$$typeof' is missing in ForwardRefComponent #2632

Closed
jeremybanka opened this issue Apr 18, 2024 · 2 comments
Closed

[BUG] Property '$$typeof' is missing in ForwardRefComponent #2632

jeremybanka opened this issue Apr 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jeremybanka
Copy link
Contributor

1. FAQs

馃憤

2. Describe the bug

framer-motion's new definition of ForwardRefComponent has broken compatibility with 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:

  1. Create a function that takes a param typed as React.ForwardRefExoticComponent.
  2. Pass motion.div to that component.
  3. You'll get a typescript error noting a missing property $$typeof in framer's ForwardRefComponent.

5. Expected behavior

No typescript error, as in framer-motion@11.1.3

6. Video or screenshots

Screenshot 2024-04-18 at 12 20 02

7. Environment details

TypeScript 5.4.5

@jeremybanka jeremybanka added the bug Something isn't working label Apr 18, 2024
@jeremybanka
Copy link
Contributor Author

PR here: #2631

@jeremybanka jeremybanka changed the title [BUG] Property '$$typeof' is missing [BUG] Property '$$typeof' is missing in ForwardRefComponent Apr 18, 2024
@mattgperry
Copy link
Collaborator

Thanks for the PR! Will publish now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants