Solving Turborepo + Bun Workspace Dependency & Script Issues #6465
nithin-raj-9100
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
For bun we shouldn't use pnpm to install packages:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ya I cant even create a project with bun gives me this
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Critical Fixes & Cleanup Steps 🧹
1. Root
package.json
FixesWhy it mattered:
workspaces
is required for Bun's workspace resolutionFiles to remove
rm -rf pnpm-*
Final Directory Structure
This battle-tested configuration now runs Next.js + shadcn/ui with:
Adding shadcn/ui Components 🎨
Add Components to Your Project
Run the add command in your app directory:
cd apps/web bunx --bun shadcn@canary add [COMPONENT]
What Happens:
Components are installed under packages/ui/src/components
Import paths are automatically updated in apps/web
Importing Components
Import components from the shared UI package:
These changes should work without any error
Beta Was this translation helpful? Give feedback.
All reactions