Bug: Tailwind-elements carousel component transitions break in Angular prerender #1874
-
First of all, what a great library to use! It has a lot of useful components I can easily add to my existing tailwind projects! I have a very specific problem. For our website https://wikkl.me/en/ we used angular(v16) as a front-end framework and added the tailwind carousels on the homepage to showcase different images of our projects. The carousels work as expected when you simply use But when we use the I also tried this with a clean project using the exact code snippets found on your website: https://tailwind-elements.com/docs/standard/components/carousel/ Even with a clean angular v16 project, when building the website with We are using: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi. Apparently Sometimes in similar issues, dynamic imports solved the occuring problems. Maybe using dynamic imports inside
|
Beta Was this translation helpful? Give feedback.
Maybe there is a way in Angular prerender to skip the render of the component during prerendering, so that it would load as usual? I am thinking about something similar to
no-ssr
in nuxt or next.I've read about
isPlatformServer
method, that could be used inside theshouldRenderComponent
method. Maybe give it a try?I hope any of this will be helpful.