Turbopack removes styles from TailwindCSS/DaisyUI
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 142k
- Forks
- 32.4k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 351
Description
Link to the code that reproduces this issue
https://github.com/iKushiu/turbopack-bug
To Reproduce
- Start the application in dev mode with Turbopack active (next dev --turbopack)
Current vs. Expected behavior
When the application is started with turbopack some styles from DaisyUI are removed.
But it should look like this
If you start it without turbopack the styles are normal.
The Problem occurs in 15.4.1 in 15.4.0 the styles are normal too.
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025
Available memory (MB): 15451
Available CPU cores: 16
Binaries:
Node: 18.19.1
npm: 9.2.0
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 15.4.1 // Latest available version is detected (15.4.1).
eslint-config-next: N/A
react: 19.1.0
react-dom: 19.1.0
typescript: 5.8.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Clone the reproduction project linked in the issue and first run it with next dev --turbopack, then compare it with the same app without Turbopack. Trace how the TailwindCSS/DaisyUI styles are processed between Next.js 15.4.0 and 15.4.1; done means the affected styles remain present in the Turbopack dev output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nextjs, tailwindcss
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100