React-slick: Once React Slick is rendered I get "Cannot call a class as a function" error

Created on 26 Apr 2018  路  3Comments  路  Source: akiran/react-slick

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!!

stale

Most helpful comment

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adamthewan picture adamthewan  路  4Comments

will88 picture will88  路  3Comments

AlmogRnD picture AlmogRnD  路  4Comments

slashwhatever picture slashwhatever  路  3Comments

darkalor picture darkalor  路  4Comments