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

Nextjs 13 app directory server components not working with react-splide #75

Open
2 tasks done
esmaeilialireza opened this issue Sep 15, 2023 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@esmaeilialireza
Copy link

Checks

Version

0.7.12

Description

Hi. It seems react-splide is not working with server components in nextjs 13 app directory.
Error says splide uses class components and only works in client components.
Screenshot 2023-09-14 162450

Reproduction Link

No response

Steps to Reproduce

Used in server components

Expected Behaviour

Work with server components

@esmaeilialireza esmaeilialireza added the bug Something isn't working label Sep 15, 2023
@ioiofadhil
Copy link

ioiofadhil commented Oct 2, 2023

Is SplideJS itself a client-side library? Just use "use client" in your components... CMIIW

@esmaeilialireza
Copy link
Author

The slider must render on the server side because there are some data that must rendered on the server for SEO.
BTW I know that I should use "use client" for client components😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants