Skip to content

Turbopack removes styles from TailwindCSS/DaisyUI #81763

@iKushiu

Description

@iKushiu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TurbopackRelated to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions