huntabyte / shadcn-svelte

shadcn/ui, but for Svelte. ✨
https://next.shadcn-svelte.com
MIT License
5.54k stars 341 forks source link

Combobox component installation fails - component not found #1520

Closed onursoyer closed 2 days ago

onursoyer commented 4 days ago

Describe the bug

When attempting to install the combobox component using the CLI command, the installation fails with a 'component not found' error.

Reproduction

  1. npx shadcn-svelte@latest add combobox

Logs

$: npx shadcn-svelte@latest add combobox

┌   shadcn-svelte  v0.14.0 
│
◇  Components to install:
│  combobox
└  Selected components not found.

System Info

System:
    OS: Linux 6.11 Fedora Linux 41 (Workstation Edition)
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1260P
    Memory: 22.23 GB / 46.75 GB
    Container: Yes
    Shell: 5.2.32 - /bin/bash
  Binaries:
    Node: 22.11.0 - /usr/bin/node
    npm: 10.9.0 - /usr/bin/npm
  Browsers:
    Chrome: 130.0.6723.116
  npmPackages:
    @sveltejs/kit: ^2.7.2 => 2.7.2 
    bits-ui: ^0.21.16 => 0.21.16 
    cmdk-sv: ^0.0.17 => 0.0.17 
    formsnap: ^1.0.1 => 1.0.1 
    lucide-svelte: ^0.394.0 => 0.394.0 
    mode-watcher: ^0.3.1 => 0.3.1 
    shadcn-svelte: ^0.13.0 => 0.13.0 
    svelte: ^4.2.19 => 4.2.19 
    svelte-radix: ^1.1.1 => 1.1.1 
    svelte-sonner: ^0.3.28 => 0.3.28 
    sveltekit-superforms: ^2.20.0 => 2.20.0

Severity

annoyance

Wollaston commented 4 days ago

The combobox is a composition of the popover and command components, rather than its own, unique component. Try installing those individually first: npx shadcn-svelte@latest add command popover

onursoyer commented 2 days ago

Thanks @Wollaston - installing the command and popover components separately worked perfectly! Going to close this issue now.