Open rawatmanoj opened 5 months ago
Same in NextJS 14. If the Carousel is imported in a component that does not define "use client" the following error is generated at compile time. Should be noted that this is for a project that uses the App Router
⨯ node_modules/react-multi-carousel/lib/types.js (1:262) @ d
⨯ TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (
+1 getting the same issue. On Version 13.5
Change your file .tsx to .jsx Works for me
Same exact issue here. SSR is impossible on NextJS until this is fixed.
Having the exact same issue.
Abandoning this library in favour of something that doesn't have 5 year old examples in a fast paced world.
What about using it as component and importing it on page.tsx file ? It works fine on my side but i have z-index issue and scroll is not smooth and not quiet responsive.
Library is not working without giving "use client" at the top. Even for SSR we have to give "use client" which makes it render client side.