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
The SwiperSlideProps interface is not compatible with @types/react@18
(the error is solved with "skipLibCheck": true but I would prefer to avoid it)
Expected Behavior
no typescript error
Actual Behavior
tsc command returns this error:
error TS2430: Interface 'SwiperSlideProps' incorrectly extends interface 'HTMLAttributes<HTMLElement>'.
Types of property 'children' are incompatible.
Type 'ReactNode | ((slideData: SlideData) => ReactNode)' is not assignable to type'ReactNode'.
Type '(slideData: SlideData) => ReactNode' is not assignable to type'ReactNode'.
427 interface SwiperSlideProps {
Check that this is really a bug
Reproduction link
https://github.com/francescocaveglia/swiper-test
Bug description
The
SwiperSlideProps
interface is not compatible with@types/react@18
(the error is solved with
"skipLibCheck": true
but I would prefer to avoid it)Expected Behavior
no typescript error
Actual Behavior
tsc
command returns this error:Swiper version
8.2.4
Platform/Target and Browser Versions
Node
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: