I have recently moved a site over to a new repo which is using next.js for routing and SSR. However now whenever I render my React slick slider I get a Cannot call a class as a function error and it breaks the sites entirely.
I have tried my own react component, a very basic implementation and the example one on the playground page provided from this page when first creating this ticket, none of them work. It seems any instance of React Slick breaks on my site now.
I also don't get much detail on the issue other than the Cannot call a class as a function message.
Does anyone know a way to fix this!!
Fix was to downgrade to 0.14.6 馃槮馃槩
Same here. Just to give more context - in my case, it happened with react version 15.5.4
Downgrading react-slick to 0.21.0 helped for me, but downgrading to 0.22.0 didn't.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Same here. Just to give more context - in my case, it happened with react version 15.5.4
Downgrading
react-slickto0.21.0helped for me, but downgrading to0.22.0didn't.