Skip to content

[bug]: shadcn-cli "apply" command does not work in monorepo #10411

@LuisRosengarten

Description

@LuisRosengarten

Describe the bug

Excecuted the following command
bunx shadcn@latest apply --preset b1VlIttK -c packages/ui

Got following error:
We could not detect a supported framework at /Users/luisrosengarten/Documents/CODEN/kpmg/todo/todo-audit/packages/ui. Visit https://ui.shadcn.com/docs/installation/manual to manually configure your project. Once configured, you can use the cli to add components.

Affected component/components

Whole project

How to reproduce

  1. Execute following command in monorepo root directory
    bunx shadcn@latest apply --preset b1VlIttK -c packages/ui
  2. Confirm replacement of components

Codesandbox/StackBlitz link

No response

Logs

System Info

MacOS -> bun package manager -> shadcn generated monorepo

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

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