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] react@beta (19) breaks motion's type #2640

Open
codehz opened this issue Apr 27, 2024 · 0 comments
Open

[BUG] react@beta (19) breaks motion's type #2640

codehz opened this issue Apr 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@codehz
Copy link

codehz commented Apr 27, 2024

1. Read the FAQs 馃憞

2. Describe the bug

Give a clear and concise description of what the bug is.

when install react@beta with framer-motion@11.1.7, the type of motion are broken, make

<motion.div className="test" />

be marked as error in typescript (in fact all props from div are not applicable in motion.div

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

A CodeSandbox minimal reproduction will allow us to quickly follow the reproduction steps. Without one, this bug report won't be accepted.

https://codesandbox.io/p/devbox/pcm9tk?migrateFrom=n48ymv

4. Steps to reproduce

Just see the type error, it is not bug about behavior

5. Expected behavior

no type error when works with react 19 beta

6. Video or screenshots

image

7. Environment details

"react": "19.0.0-beta-94eed63c49-20240425",
"react-dom": "19.0.0-beta-94eed63c49-20240425",
"@types/react": "npm:types-react@beta",
"@types/react-dom": "npm:types-react-dom@beta"

@codehz codehz added the bug Something isn't working label Apr 27, 2024
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

1 participant