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 is a type error, but if forced to output it actually works just fine. So this component is requiring something that's too narrow? This even occures is I just use a div under it...
Full Error:
TS2769: No overload matches this call.
Overload 1 of 2, '(props: FlipMoveProps | Readonly): FlipMove', gave the following error.
Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
Overload 2 of 2, '(props: FlipMoveProps, context: any): FlipMove', gave the following error.
Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
The text was updated successfully, but these errors were encountered:
douglasg14b
changed the title
Cannot use FlipMove "No overload matches this call." despite child components using forwardRef
Cannot use FlipMove "No overload matches this call."
Apr 24, 2022
This can be resolved by adding children?: React.ReactNode; to FlipMoveProps. I guess it not defining children as a prop means it doesn't accept children?
I'm using React 18.
This is a type error, but if forced to output it actually works just fine. So this component is requiring something that's too narrow? This even occures is I just use a div under it...
Full Error:
Simple use that produces this error:
Used like:
PlaylistSongCard:
The text was updated successfully, but these errors were encountered: