You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This theme introduces outdated type definitions from old versions of @mui/material and it causes typing errors. For instance,
error TS2741: Property 'placeholder' is missing in type '{ children: string; color: "inherit"; variant: "contained"; }' but required in type 'Pick<{ children?: ReactNode; classes?: Partial<ButtonClasses> | undefined; color?: "inherit" | "primary" | "secondary" | "error" | "warning" | "info" | "success" | undefined; ... 9 more ...; variant?: "text" | ... 2 more ... | undefined; } & Omit<...> & CommonProps & Omit<...> & GatsbyProps, "to" | ... 283 more ... ...'.
181 <NavigationButton
~~~~~~~~~~~~~~~~
is caused by a Pick<ButtonProps, 'placeholder' ...>. The problem is that there is no placeholder to pick, so it resolves to { placeholder: unknown, ...} and typescript then thinks that the non-existing property placeholder is required.
This theme introduces outdated type definitions from old versions of
@mui/material
and it causes typing errors. For instance,is caused by a
Pick<ButtonProps, 'placeholder' ...>
. The problem is that there is noplaceholder
to pick, so it resolves to{ placeholder: unknown, ...}
and typescript then thinks that the non-existing propertyplaceholder
is required.This error seems similar to creativetimofficial/material-tailwind#528.
The text was updated successfully, but these errors were encountered: