-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Property 'component' does not exist on type... Grid? #29191
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
Comments
I'm also seeing the same issue with I'm just adding |
Following... |
In my case I fixed this by adding the prop
|
@siriwatknp may I ask you to take a look when you have some time? |
I encountered this error when I was bumping TS from 5.4 to 5.5 along with MUI 7. Something in here is causing this. As a temporary solution, folks who encounter this bug could lock themselves to |
Should this be reopened? |
@bhavey-munjal please share the code (especially jsx) that renders the Grid. |
Based on @gunslingor snippet, I think you are using In v7, the Grid has changed, please take a look at https://mui.com/material-ui/migration/upgrade-to-v7/#grid-and-grid2-renamed For some context, the Grid was reworked in v6 and released as
For full information, please take a look at https://mui.com/material-ui/migration/upgrade-to-grid-v2/ |
When emulating this line of the provided template, TypeScript complains:
According to the "with Typescript" composition coveat,:
I hope this helps.
The text was updated successfully, but these errors were encountered: