Skip to content

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

@ariel-upstream

Description

@ariel-upstream

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions