-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@mui/material incompatible with versions of @types/react > 18.2.60 #41906
Comments
@mj12albert @zannager Any updates on this? |
@valleywood Could you try using the package versions in this sandbox? |
@mj12albert But the sandbox you linked to above also contains the error? 🤔 |
Problem is still relevant with @types/react 18.3.3 and @mui/material 5.15.19. |
@mj12albert Any updates on this? This is still a problem with @types/react 18.3.3 and @mui/material 5.16.7. |
Tested with Not able to reproduce the error any longer so I think this ticket can be closed. |
Steps to reproduce
https://codesandbox.io/p/sandbox/test-w2msfc?file=%2Fsrc%2FInput.tsx%3A9%2C1
Steps:
Current behavior
Possible but verbose solution without TS error (but is it even legit)?
Expected behavior
According to documentation:
https://mui.com/material-ui/guides/composition/#caveat-with-strictmode
It should be enough be enough to wrapt components like this:
Context
Wrapping @mui/material components
Your environment
npx @mui/envinfo
Search keywords: types @types/react forwardRef
The text was updated successfully, but these errors were encountered: