Error when initializing shadcn in a monorepo setup #6722
Replies: 3 comments 3 replies
-
I found a workaround, not the best way but it worked for me
it will throw error saying bun install failed but the basic structure will have been created by now then you can cd into your project and run
just make sure you change the pnpm version in pacakage.json to the one you are installing. Its the only way i came across to initiate project. FYI idk why
works perfectly on macOS only idk whats wrong on linux or windows Edit:
this works in windows CMD too but if i run that on gitbash it fails |
Beta Was this translation helpful? Give feedback.
-
Facing the same issue |
Beta Was this translation helpful? Give feedback.
-
Still broken |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am encountering an issue while trying to initialize shadcn in a monorepo. I have attempted using npm, pnpm, and bun as package managers, but the same error appears.
Has anyone faced a similar issue, or can provide guidance on how to resolve this?
PNPM Package Manager:

NPM Package Manager:

Bun Package Manager:

Beta Was this translation helpful? Give feedback.
All reactions