Closed samislam closed 1 month ago
Thank you @samislam
for reporting issues. It helps daisyUI a lot ๐
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
By the way, the rest of my real application works perfectly, just the issue is in this theme toggler, here's my application that I am currently working on:
This UI is completely written with Daisyui classes, they work. just the theme toggler.
The issue is not from daisyUI.
daisyUI provides styles to Tailwind CSS, then your build tool/bundler runs Tailwind CSS and creates your CSS file.
I don't have any control over the build tool or bundler.
Please report the issue here: https://github.com/vercel/next.js/issues
Also, I don't think Turbopack is ready for production. It's still in beta so bugs are expected.
What version of daisyUI are you using?
v4.12.13
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://filebin.net/bu5kd4ggjcwlvbnj
Describe your issue
I wrote a very simple page that renders the component shown in this example in the docs. The component renders differently when running NextJs with turbo-pack and when running NextJs normally.
Here's the code:
Here's how it renders:
First, here's how it looks like when running NextJs dev server normally:
On the other hand, here is how it looks like when running NextJs with turbopack enabled: