-
Notifications
You must be signed in to change notification settings - Fork 706
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sliding/changing images doesn't work with latest React client/server components and NextJS #780
Comments
Its working fine for me without
|
Same issue here, macOS/Brave/Safari. I can't remove No console errors, and I also tried debugging clicks using My versions:
|
Same issue for me. I see the format fine after importing CSS file ( which also should be updated in README for correct import in JS module ). Not able to click anything
|
this solve the problem |
Checklist before opening an issue
Lots of issues are opened that are unrelated to this package, please take a moment to ensure the issue is not on your end 馃檹.
Describe the bug
Clicking in thumbnails or nav buttons doesn't work.
Upon first load, If I quickly click (<1 second) on a nav arrow or thumbnail, it will throw the below error
Error: async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding 'use client' to a module that was originally written for the server.
Library versions:
react: 18.2.0
next: 13.5.6
This is the code of the component I'm using
Image Gallery Version
What version of
react-image-gallery
are you using? 1.3.0To Reproduce
Steps to reproduce the behavior:
Expected behavior
When clicking on a thumbnail, it should slide to that image.
Client info (please complete the following information):\
Additional context
If I don't use
use client
, it will also throw the below error.The text was updated successfully, but these errors were encountered: