YIZHUANG / react-multi-carousel

A lightweight production-ready Carousel that rocks supports multiple items and server-side rendering with no dependency. Bundle size 2kb.
MIT License
1.25k stars 286 forks source link

CSS not imported #250

Closed R-Aniruddha closed 3 years ago

R-Aniruddha commented 3 years ago

Hello everyone, I've been stuck with this problem for several days and search extensively over the Internet but no solution. I don't know if the I have been trying to get this component to work on Sanity's Next.js template sanity-template-nextjs-landing-pages. Initially I had problems with importing css for the component import "react-multi-carousel/lib/styles.css"; That caused an error which I fixed by adding url: false, to the next.config.js file After that the component loads but with no styling at all. The classes are there on the elements but with no css.

image

I'm sorry if this isn't the right place to post this issue. Please delete if it isn't. Thanks in advance