vercel / vercel/next.js

Turbopack removes styles from TailwindCSS/DaisyUI

Open
#81,763 16 comments 30 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

linear: turbopack Turbopack
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
  1. 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.

Image

But it should look like this

Image

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

PACK-5139

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.