mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Typescript error - MUIDataTable cannot be used as a JSX component

Open ariel-upstream opened this issue 11 months ago • 0 comments

Error: TS2786: MUIDataTable cannot be used as a JSX component. Its type ComponentType<MUIDataTableProps> 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",

ariel-upstream avatar Dec 11 '24 09:12 ariel-upstream