You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 馃檹.
Did you try google?
Did you search for previous Issues in this repo?
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.
Image Gallery Version
What version of react-image-gallery are you using? 1.3.0
To Reproduce
Steps to reproduce the behavior:
Add the above component to a blank page
Load the app
Click on a Thumbnail image or nav arrow
Nothing will happen
Expected behavior
When clicking on a thumbnail, it should slide to that image.
Client info (please complete the following information):\
OS: MacOS
Browser: chrome
Additional context
If I don't use use client , it will also throw the below error.
You're importing a component that needs useState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default.
Learn more: https://nextjs.org/docs/getting-started/react-essentials
The text was updated successfully, but these errors were encountered:
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
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: