when I import
import { Carousel } from "react-responsive-carousel";
and use it like bellow:
<Carousel
autoPlay
infiniteLoop
showStatus={false}
showIndicators={false}
showThumbs={false}
interval={5000}
></Carousel>
TypeError: Super expression must either be null or a function, not undefined
I was expect carousel for banner in my website
It seems that the react component in which the Carousel component is being used should be a client component and not a server component. This is done using the directive "use client". In React 18, components inside in the app directory are by default server components.
It is not clear why it is not working from a server component. Probably best create an issue on their github project https://github.com/leandrowd/react-responsive-carousel/issues