akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.76k stars 2.11k forks source link

React + Vite - package not working #2035

Closed MyraxByte closed 10 months ago

MyraxByte commented 3 years ago

Hi, i'm using React + Vite, and react-slick package not working image

MyraxByte commented 3 years ago

For example u can create yarn create @vitejs/app example-app --template react-ts and install react-slick from docs.

ghernandezr commented 3 years ago

Yes, I have the same issue here. Any solution so far?. Thanks!!!

ghernandezr commented 3 years ago

@Mirazex In my case. I remove the yarn.lock file, then remove the node_modules folder, then reinstall all again and now all work fine, I hope that's helps.

rrfaria commented 2 years ago

same here

[vite] Internal server error: [postcss] Failed to find '~slick-carousel/slick/slick.css'

pratyushbh commented 1 year ago

Hi @Mirazex , can you please provide me the codesandbox link or a repo of your code so that I can replicate the issue

web-developer032 commented 1 year ago

yea we have to delete node modules and package-lock and yark-lock file then reinstall all the packages thank you @ghernandezr ghernandezr

vu-innoflex commented 1 year ago

same here

[vite] Internal server error: [postcss] Failed to find '~slick-carousel/slick/slick.css'

@rrfaria In my case, change to 'slick-carousel/slick/slick.css' resolve the problem

salehahmed20 commented 6 months ago

hi i am a beginner in react-vite. how can i run slick carousel in my project. please guide step by step

ravishanw commented 4 months ago

Hi, make sure you have installed slick-carousel as well as react-slick

npm install react-slick slick-carousel --save