-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: monorepo CLI fails to create project BUN
#6145
Comments
BUN
When using NPM, a similar error occurs, as it uses a
|
And when I used
|
In order to get it to work correctly with bun I removed the pnpm related files ( {
"name": "shadcn-ui-monorepo",
"version": "0.0.1",
"private": true,
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*",
"prettier": "^3.2.5",
"turbo": "^2.3.0",
"typescript": "5.5.4"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=20"
},
"workspaces": [
"apps/*",
"packages/*"
]
} |
Tip to install the CLI with bun, do not use bunx --bun shadcn@latest init, better use bunx --bun shadcn init |
This is for monorepos which specify
in the docs |
Describe the bug
When attempting to create a new Next.js monorepo project using the shadcn CLI (canary version), the process fails due to missing workspace dependencies.
Affected component/components
CLI
How to reproduce
Steps to Reproduce
bunx --bun shadcn@canary init
Expected Behavior
The CLI should successfully create a new Next.js monorepo project with all necessary dependencies and configurations.
Actual Behavior
The CLI fails to create the project, reporting missing workspace dependencies:
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: