Skip to content

[bug]: sidebar-02 doesn't add collapsible component dependency when installing via cli #7903

@PianoPlayer09

Description

@PianoPlayer09

Describe the bug

When adding the sidebar-02 component via the CLI, the collapsible component is required but not automatically included.

I will be adding a pr to close this issue shortly.

Image

Affected component/components

sidebar-02

How to reproduce

  1. Open any project with shadcn installed
  2. Try to install sidebar-02 via cli command npx shadcn@latest add sidebar-02
  3. Open app-sidebar.tsx to verify missing dependency

Codesandbox/StackBlitz link

https://stackblitz.com/edit/stackblitz-starters-jh4afpq6?file=components%2Fapp-sidebar.tsx

Logs

System Info

- OS: Windows 11
- Node.js: v22.14.0
- Package Manager: npm 9.8.1
- Framework: Next.js 15.4.3
- shadcn/ui CLI version: 2.9.3

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