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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript error - MUIDataTable cannot be used as a JSX component #2044

Open
ariel-upstream opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@ariel-upstream
Copy link

Error:
TS2786: MUIDataTable cannot be used as a JSX component.
Its type ComponentType is not a valid JSX element type.
Type ComponentClass<MUIDataTableProps, any> is not assignable to type ElementType
Type 'ComponentClass<MUIDataTableProps, any>' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any, any, any>'.
Property refs is missing in type Component<MUIDataTableProps, any, any> but required in type Component<any, any, any>

Versions:
"react": "18.3.0",
"@mui/material": "6.2.0",
"typescript": "5.5.4",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant