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

Adding "command" component fails on fresh install #1172

Open
jrsalazar-dev opened this issue Jul 4, 2024 · 1 comment
Open

Adding "command" component fails on fresh install #1172

jrsalazar-dev opened this issue Jul 4, 2024 · 1 comment

Comments

@jrsalazar-dev
Copy link

Describe the bug

From a 100% fresh install, first time trying both sveltekit and shadcn-svelte.

All it takes is (answering yes to everything):

npm create svelte@latest forward
npx @svelte-add/tailwindcss@latest
npx shadcn-svelte@latest init
npx shadcn-svelte@latest add command

The error I get is:
Screenshot 2024-07-04 at 22 20 30

It hints at a missing peer-dependency which is very odd since I have done nothing else but install the base packages.

It installs fine if I use bunx instead of npx and install the packages with bun instead (because bun ignores the peer-dep error).

Sorry I can't provide a full reproduction.

Reproduction

Steps to reproduce

npm create svelte@latest forward
npx @svelte-add/tailwindcss@latest
npx shadcn-svelte@latest init
npx shadcn-svelte@latest add command

Logs

No response

System Info

System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 181.14 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.1.0 - /opt/homebrew/bin/node
    Yarn: 1.22.15 - ~/.node_modules/bin/yarn
    npm: 8.4.0 - ~/.node_modules/bin/npm
    pnpm: 6.11.0 - ~/.node_modules/bin/pnpm
    bun: 1.0.12 - ~/.bun/bin/bun
  Browsers:
    Chrome: 126.0.6478.62
    Safari: 17.4.1
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.5.18
    bits-ui: ^0.21.11 => 0.21.11
    cmdk-sv: ^0.0.17 => 0.0.17
    lucide-svelte: ^0.399.0 => 0.399.0
    svelte: ^5.0.0-next.1 => 5.0.0-next.174

Severity

blocking all usage of shadcn-svelte

@jrsalazar-dev jrsalazar-dev changed the title Adding "command" fails on fresh install Adding "command" component fails on fresh install Jul 4, 2024
@alephpt
Copy link

alephpt commented Jul 9, 2024

I have the same problem, but it's with the bits-ui, next and svelte versions. "Fix upstream" it tells me

I was able to fix this by adjusting the versions in package.json, deleting node_modules and running npm i to reinstall the 'correct' versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants