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
- Clone the repo fresh
- Run
pnpm install and pnpm --filter=shadcn build
- Start the
apps/v4 dev server
- 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
Describe the bug
apps/v4/app/globals.cssimportsshadcn/tailwind.css, but theexportsfield inpackages/shadcn/package.jsononly 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 aCssSyntaxError.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
pnpm installandpnpm --filter=shadcn buildapps/v4dev serverCodesandbox/StackBlitz link
https://github.com/Ashmit-Pirate/ui
Logs
System Info
Before submitting