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

Troubleshooting Carousel Item Conflicts in Next.js with 'react-multi-carousel' #424

Open
amirshnll opened this issue Jan 13, 2024 · 0 comments

Comments

@amirshnll
Copy link

amirshnll commented Jan 13, 2024

Describe the bug
I am utilizing "react-multi-carousel" to create four carousels on a single page in Next.js. To render images in these carousels, I make a request to my backend to retrieve image data. I create image items using var1.map... and incorporate them using the <Image> tag in Next.js. However, I am encountering an issue where the items in the carousels are getting mixed up and swapped between the carousels. Interestingly, when I use the standard HTML <img> tag, everything works fine, but the problem arises when I switch to the Next.js <Image> tag. Additionally, this bug does not appear in the development mode, but it manifests after the build process.

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

1 participant