akiran / react-slick

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

Error with compatibility with react ^18 #2390

Open Adrianpecl03 opened 2 months ago

Adrianpecl03 commented 2 months ago

Hey, i install both versions of react-slick (0.29 and latest) and no one have compatibility with react and react-dom ^18. Any solution?

Adrianpecl03 commented 2 months ago

also node ^20

Adrianpecl03 commented 2 months ago

Server Error TypeError: Super expression must either be null or a function

This error happened while generating the page. Any console logs will be displayed in the terminal window. Call Stack _inherits (rsc)\node_modules\react-slick\lib\track.js (16:106) eval (rsc)\node_modules\react-slick\lib\track.js (191:0) eval (rsc)\node_modules\react-slick\lib\track.js (227:1) (rsc)/./node_modules/react-slick/lib/track.js file:///C:/Users/adria/Desktop/AdrianProfesional/NordlyArrow/nordlyarrow-frontend/.next/server/vendor-chunks/react-slick.js (90:1) webpack_require file:///C:/Users/adria/Desktop/AdrianProfesional/NordlyArrow/nordlyarrow-frontend/.next/server/webpack-runtime.js (33:42) eval (rsc)\node_modules\react-slick\lib\inner-slider.js (12:13) (rsc)/./node_modules/react-slick/lib/inner-slider.js file:///C:/Users/adria/Desktop/AdrianProfesional/NordlyArrow/nordlyarrow-frontend/.next/server/vendor-chunks/react-slick.js (70:1) webpack_require file:///C:/Users/adria/Desktop/AdrianProfesional/NordlyArrow/nordlyarrow-frontend/.next/server/webpack-runtime.js (33:42) eval (rsc)\node_modules\react-slick\lib\slider.js (8:19) (rsc)/./node_modules/react-slick/lib/slider.js file:///C:/Users/adria/Desktop/AdrianProfesional/NordlyArrow/nordlyarrow-frontend/.next/server/vendor-chunks/react-slick.js (80:1)

pedrohenrickcs commented 2 months ago

I'm having the same problem here

react: "^18" node: "^20"

faiznazeer commented 1 month ago

@Adrianpecl03 Hey, found any solution?

Adrianpecl03 commented 1 month ago

Hey @faiznazeer, i finally use another library: "keen-slider". It's a bit difficult but it works. https://keen-slider.io/docs

faiznazeer commented 1 month ago

Thanks, will try it out