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

Carousel items don't render on server side with the newest Next (9.2.0)

Open kgabryje opened this issue 6 years ago • 6 comments

I'm using the lib with Next.js and SSR enabled. It worked fine for me on 9.1.4 version, but after updating Next to 9.2.0 carousel items don't render on the first page load. After navigating to another page and coming back, so that the carousel renders on client side, the items appear. What's strange is that setting ssr prop to false doesn't fix the issue.

kgabryje avatar Jan 17 '20 09:01 kgabryje

I have same issue and fixed by:

import "react-responsive-carousel/lib/styles/carousel.min.css";

tikpage avatar Feb 16 '20 12:02 tikpage

I have same issue and fixed by:

import "react-responsive-carousel/lib/styles/carousel.min.css";

I added that line on the _app.js and is not working either. I'm working with "next": "9.3.5" and "react-responsive-carousel": "^3.2.4"

MemoVDG avatar Apr 26 '20 19:04 MemoVDG

Any update on this?

To import a css you need to ensure you have a css loader configured.

leandrowd avatar May 02 '20 11:05 leandrowd

I'm on nextjs 9.3.4 and there are no issues. Not sure if you can upgrade.

bkyam avatar Jun 24 '20 20:06 bkyam

We use 10.0.5 and has the same issue. No thumbnails rendered.

j4nos avatar Feb 11 '21 20:02 j4nos

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 10 '21 21:08 stale[bot]