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

[Bug]: Components not installing in the right place with nuxt #1044

Open
2 tasks
SebastienPingal opened this issue Feb 17, 2025 · 3 comments
Open
2 tasks

[Bug]: Components not installing in the right place with nuxt #1044

SebastienPingal opened this issue Feb 17, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@SebastienPingal
Copy link

SebastienPingal commented Feb 17, 2025

When I try installing button for example with this command :

npx shadcn-vue@latest add card

Everything happen correctly in the terminal, but nothing is created under './components/ui'
I tried setting this up explicitly or keeping default. I also tried somewhere else.
Installing again, say it is already installed evrytime.

Am I missing something ?

System Info

System:
    OS: Linux 6.13 EndeavourOS
    CPU: (22) x64 Intel(R) Core(TM) Ultra 9 185H
    Memory: 54.07 GB / 62.24 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 23.8.0 - /usr/bin/node
    npm: 11.1.0 - /usr/bin/npm
    pnpm: 10.4.0 - /usr/bin/pnpm
  npmPackages:
    nuxt: ^3.15.4 => 3.15.4 
    radix-vue: ^1.9.14 => 1.9.14 
    shadcn-nuxt: 0.11.3 => 0.11.3 
    vue: latest => 3.5.13

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@SebastienPingal SebastienPingal added the bug Something isn't working label Feb 17, 2025
@titan-65
Copy link

Have you tried - npx shadcn-vue@latest add [component-name] --path app/components/ui (assuming you using the migrated Nuxt 4)

@FabienEssid
Copy link

Have you tried - npx shadcn-vue@latest add [component-name] --path app/components/ui (assuming you using the migrated Nuxt 4)

It works with the following command in my case:

npx shadcn-vue@latest add [component-name] --path ./components/ui

@zernonia
Copy link
Member

can you try out the latest shadcn-vue@latest? 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants