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

Doesn't work in Next.js 14 (production mode) #2336

Open
humanua opened this issue Jan 31, 2024 · 8 comments
Open

Doesn't work in Next.js 14 (production mode) #2336

humanua opened this issue Jan 31, 2024 · 8 comments

Comments

@humanua
Copy link

humanua commented Jan 31, 2024

In version 0.30.1 in development mode in Next.js 14 it works well, but when I build my application (production mode) the slider doesn't work. but everything works fine in version 0.29.0

@Davron129
Copy link

Same issue, I got this error after build command:

Type error: 'Slider' cannot be used as a JSX component. Its type 'typeof Slider' is not a valid JSX element type.

@shipmaal
Copy link

Works fine for me with Next.js 14.1.0 and react-slick 0.30.2

@20manas
Copy link

20manas commented Feb 26, 2024

I was having the same issue. In my case, what the fixed the issue was removing @types/react-slick

@laolee010126
Copy link

Do not forget add 'use client'

@refex
Copy link

refex commented Mar 14, 2024

same here, next14

@daibergm
Copy link

daibergm commented Apr 3, 2024

Same issue, I'm using next V14.1.4:
image

@GeorgeArubi
Copy link

I was having the same issue. In my case, what the fixed the issue was removing @types/react-slick

So how did you use the Slider without type definitions? I'm assuming you're using typescript right?

@20manas
Copy link

20manas commented May 26, 2024

I was having the same issue. In my case, what the fixed the issue was removing @types/react-slick

So how did you use the Slider without type definitions? I'm assuming you're using typescript right?

Yes I am using typescript. The types aren't available, but what is accepted by the components is in the docs, so I used that.

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

8 participants