Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with compatibility with react ^18 #2390

Open
Adrianpecl03 opened this issue Jul 17, 2024 · 6 comments
Open

Error with compatibility with react ^18 #2390

Adrianpecl03 opened this issue Jul 17, 2024 · 6 comments

Comments

@Adrianpecl03
Copy link

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
Copy link
Author

also node ^20

@Adrianpecl03
Copy link
Author

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
Copy link

I'm having the same problem here

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

@faiznazeer
Copy link

@Adrianpecl03 Hey, found any solution?

@Adrianpecl03
Copy link
Author

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

@faiznazeer
Copy link

Thanks, will try it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants