Skip to content
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]: Canary CLI monorepo doesn't Install dependencies in right place #6286

Open
2 tasks done
davidFeldqwe opened this issue Jan 6, 2025 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@davidFeldqwe
Copy link

davidFeldqwe commented Jan 6, 2025

Describe the bug

I've tried the new Canary CLI monorepo to initialize a new project and add a component, but the dependencies are being installed in the wrong location. They are being installed in the web application instead of the ui package.

Affected component/components

All

How to reproduce

  1. Initialize a new project using the Shadcn CLI with monorepo:
pnpm dlx shadcn@canary init

1.2 Picking the monorepo option

? Would you like to start a new project?
    Next.js
❯   Next.js (Monorepo)
  1. Add a component to the project (e.g., a button or dialog).
pnpm dlx shadcn@latest add dialog -c apps/web
  1. Run pnpm install
pnpm i
  1. Observe that the Radix packages are either missing or not installed in the incorrect place.

Codesandbox/StackBlitz link

https://codesandbox.io/p/github/davidFeldqwe/mono-repo-shadcn-demo/main?import=true

Logs

No response

System Info

macOS, chrome

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@davidFeldqwe davidFeldqwe added the bug Something isn't working label Jan 6, 2025
@salvinoto
Copy link

Same issue, except it wont even install and I get the error

Cannot read properties of undefined (reading 'resolvedPaths')

@imCorfitz
Copy link

@davidFeldqwe please note that you are calling the @latest version of shadcn.. Instead try calling: pnpm dlx shadcn@canary add dialog -c apps/web.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants