- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 7.1k
 
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Nextjs problem:
bunx --bun shadcn@latest init -> monorepo
when running bun run dev -> cant find @tailwind/postcss , installing tailwind/postcss in apps/web fixes this problem. but normally it should take it from @workspace:ui ?
Tanstack vitest problem:
when making a monorepo setup similar to the nextjs one but with tanstack and vitest. globals.css is not updated and it saying it is updating 2 globals.css files. never gets updated.
here is a fix but this stack doesnt use components.json in apps/web
tailwindlabs/tailwindcss#16733
Affected component/components
shadcn/cli
How to reproduce
- create monorepo setup like shadcn docs recommend
 - make sure you have the vite setup like the shadcn docs (tsconfig.app, .node etc, resolve path)
 - add a component with the command: bunx --bun shadcn@latest add [COMPONENT]
 - not having a style.css in web/src/ also gives an error that there is no tailwind config (with next you dont have the problem)
 - it detects 2 globals.css and nevers gets updated.
 
Codesandbox/StackBlitz link
No response
Logs
System Info
tailwind v4 
tailwind/vite > 4.0.8
shadcn@latestBefore submitting
- I've made research efforts and searched the documentation
 - I've searched for existing issues
 
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working