Skip to content

[bug]: Canary CLI monorepo doesn't Install dependencies in right place  #6286

Open
@davidFeldqwe

Description

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions