akiran / react-slick

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

TypeError: Super expression must either be null or a function #2283

Closed mdasiff closed 5 months ago

mdasiff commented 9 months ago

I installed using this command (npm install react-slick slick-carousel) in my nextjs v13 project, and using the example given on github. getting below error.

image
mzaka commented 9 months ago

Same here

manish-basargekar commented 9 months ago

As mentioned in https://github.com/akiran/react-slick/issues/1347

If you're using NextJS 13, make sure use include use client on top of the file. 'use client';

mdasiff commented 9 months ago

As mentioned in #1347

If you're using NextJS 13, make sure use include use client on top of the file. 'use client';

thanx, its fixed

kgvivek21 commented 7 months ago

TypeError: Super expression must either be null or a function

I am using react-slick in my react library (react-global-ui) and importing react library in my nextjs project (react-core)

React library - react-global-ui NextJs project - react-core

Above issue occurs when i try to run the project.

Tried using 'use client' but still it is throwing the error

Could anyone please help me on this