sanity-io / sanity-template-nextjs-landing-pages

A Sanity powered landing page builder in Next.js for https://sanity.io/create
https://www.sanity.io/create/?template=sanity-io%2Fsanity-template-nextjs-landing-pages
158 stars 54 forks source link

Import of components' css not working #53

Open R-Aniruddha opened 3 years ago

R-Aniruddha commented 3 years ago

I have tried to use several different components to create a carousel but none have been able to work properly. 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.

These are 2 of the many carousels I have tried to get working with this template but failed.

https://github.com/brainhubeu/react-carousel https://github.com/YIZHUANG/react-multi-carousel