Skip to content

fix(shadcn): missing default condition in exports["./tailwind.css"] breaks Turbopack #10931

Description

@Ashmit-Pirate

Describe the bug

apps/v4/app/globals.css imports shadcn/tailwind.css, but the exports field in packages/shadcn/package.json only has a "style" condition for that entry — no "default" fallback. Turbopack's resolver doesn't recognize the bare "style" condition without one, so the import fails with a CssSyntaxError.

Every other entry in the exports map has a "default" alongside "types", so this looks like it was just missed for the CSS entry.

Affected component/components

shadcn CLI (packages/shadcn)

How to reproduce

  1. Clone the repo fresh
  2. Run pnpm install and pnpm --filter=shadcn build
  3. Start the apps/v4 dev server
  4. Browser shows: CssSyntaxError: tailwindcss: Can't resolve 'shadcn/tailwind.css'

Codesandbox/StackBlitz link

https://github.com/Ashmit-Pirate/ui

Logs

CssSyntaxError: tailwindcss: /path/to/apps/v4/app/globals.css:3:1: Can't resolve 'shadcn/tailwind.css'

System Info

OS: Windows 11
Node: v24.11.0
pnpm: 10.33.4
Next.js: 15.2.7 (Turbopack)
Browser: Microsoft Edge

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions