-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Carousel component is not working on Astro Framework #2347
Comments
Astro does not ship JS by default. Use |
I am facing the same problem, of course using client:load on my react component which does not solve the issue. It seems like the api object returned from useEmblaCarousel remains undefined, which leads to the mentioned above behaviour |
Then I suggest to make a minimal reproduction repository. I have the component working in Astro. |
I am still struggling to get the carousel to work. I have installed the component and am trying to use it within a .astro component as so:
Is this the correct way? I am getting the following error:
|
I just worked through this with the help of this guide I found: https://spacemadness.dev/docs/add-a-shadcn-ui-component/ Here is what worked for me. In
in
I don't know if this is the only way, but it's working for me. |
i need to insatall some pakages or something? i dont find the place where is the install |
I know many people are using NextJS but I tried to use Astro framework for testing several things.
I followed all the instructions of integrate with Shadcn UI with Astro and other components work fine.
But recently added component called Carousel is not working at all in astro. I am wondering if this is only my issue.
It doesn't autoplay, and when I click the arrow button, it doesn't work.
The text was updated successfully, but these errors were encountered: