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
Type 'ForwardRefExoticComponent<Omit<InputProps, "ref"> & RefAttributes<unknown>>' is not assignable to type 'FC<InputProps>'.
Types of property 'propTypes' are incompatible.
Type 'WeakValidationMap<Omit<InputProps, "ref"> & RefAttributes<unknown>> | undefined' is not assignable to type 'WeakValidationMap<InputProps> | undefined'.
Type 'WeakValidationMap<Omit<InputProps, "ref"> & RefAttributes<unknown>>' is not assignable to type 'WeakValidationMap<InputProps>'.
Types of property 'ref' are incompatible.
Type 'Validator<LegacyRef<unknown> | undefined> | undefined' is not assignable to type 'Validator<((instance: unknown) => void) | RefObject<unknown> | null | undefined> | undefined'.
Type 'Validator<LegacyRef<unknown> | undefined>' is not assignable to type 'Validator<((instance: unknown) => void) | RefObject<unknown> | null | undefined>'.
Type 'LegacyRef<unknown> | undefined' is not assignable to type '((instance: unknown) => void) | RefObject<unknown> | null | undefined'.typescript(2322)
Current behavior
Possible but verbose solution without TS error (but is it even legit)?
Steps to reproduce
https://codesandbox.io/p/sandbox/test-w2msfc?file=%2Fsrc%2FInput.tsx%3A9%2C1
Steps:
Current behavior
Possible but verbose solution without TS error (but is it even legit)?
Expected behavior
According to documentation:
https://mui.com/material-ui/guides/composition/#caveat-with-strictmode
It should be enough be enough to wrapt components like this:
Context
Wrapping @mui/material components
Your environment
npx @mui/envinfo
Search keywords: types @types/react forwardRef
The text was updated successfully, but these errors were encountered: