react-elastic-carousel icon indicating copy to clipboard operation
react-elastic-carousel copied to clipboard

error TS2769: No overload matches this call. TS

Open 3adel-bassiony opened this issue 2 years ago • 6 comments

Describe the bug I was trying to use the react-elastic-carousel and it was working well until I Updated this package to the latest version "@types/react": "^18.0.9", then I got this error:

error TS2769: No overload matches this call. Overload 1 of 2, '(props: ReactElasticCarouselProps | Readonly<ReactElasticCarouselProps>): ReactElasticCarousel', gave the following error. Type '{ children: Element[]; itemsToShow: number; itemsToScroll: number; isRTL: boolean; showArrows: false; outerSpacing: number; itemPadding: number[]; pagination: true; breakPoints: ({ width: number; itemsToShow: number; itemsToScroll?: undefined; } | { ...; })[]; focusOnSelect: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactElasticCarousel> & Readonly<ReactElasticCarouselProps>'. Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactElasticCarousel> & Readonly<ReactElasticCarouselProps>'. Overload 2 of 2, '(props: ReactElasticCarouselProps, context: any): ReactElasticCarousel', gave the following error. Type '{ children: Element[]; itemsToShow: number; itemsToScroll: number; isRTL: boolean; showArrows: false; outerSpacing: number; itemPadding: number[]; pagination: true; breakPoints: ({ width: number; itemsToShow: number; itemsToScroll?: undefined; } | { ...; })[]; focusOnSelect: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactElasticCarousel> & Readonly<ReactElasticCarouselProps>'. Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactElasticCarousel> & Readonly<ReactElasticCarouselProps>'.

3adel-bassiony avatar May 19 '22 09:05 3adel-bassiony

@3adel-bassiony getting the same Did you get any answers about solving this bug??

nanthakumaran-s avatar May 22 '22 15:05 nanthakumaran-s

@3adel-bassiony getting the same Did you get any answers about solving this bug??

@nanthakumaran-s Unfortunately no, I'm still waiting for them to fix this issue.

3adel-bassiony avatar May 22 '22 15:05 3adel-bassiony

Same error.

cleones avatar Jun 08 '22 14:06 cleones

Same error :(

same error

Cristian-ADSI avatar Jun 09 '22 16:06 Cristian-ADSI

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 12:08 stale[bot]