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]: Unable to install additional components #387

Closed
2 tasks
LukaszMoskwaCTW opened this issue Mar 7, 2024 · 4 comments · Fixed by #388
Closed
2 tasks

[Bug]: Unable to install additional components #387

LukaszMoskwaCTW opened this issue Mar 7, 2024 · 4 comments · Fixed by #388
Labels
bug Something isn't working

Comments

@LukaszMoskwaCTW
Copy link

LukaszMoskwaCTW commented Mar 7, 2024

Describe the bug

I'm using shadcn-vue with Nuxt, my components.json is the following

{
  "$schema": "https://shadcn-vue.com/schema.json",
  "style": "default",
  "typescript": true,
  "tailwind": {
    "config": "tailwind2.config.js",
    "css": "assets/css/tailwind.css",
    "baseColor": "slate",
    "cssVariables": false
  },
  "framework": "nuxt",
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils"
  }
}

And when I'm trying to add a new component with

pnpm dlx shadcn-vue@latest add tabs

I get the following

image

This used to work yesterday and I was able to add Button, Textarea, Input and many more without issues. There were no changes to the components.json file

System Info

System:
    OS: macOS 13.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 197.50 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - /opt/local/bin/node
    Yarn: 1.22.19 - /opt/local/bin/yarn
    npm: 8.19.4 - /opt/local/bin/npm
    pnpm: 8.3.1 - ~/Library/pnpm/pnpm
    bun: 1.0.0 - /usr/local/bin/bun
  Browsers:
    Chrome: 122.0.6261.94
    Safari: 16.6
  npmPackages:
    @vueuse/core: ^10.9.0 => 10.9.0 
    nuxt: ^3.10.2 => 3.10.2 
    radix-vue: ^1.4.9 => 1.4.9 
    shadcn-nuxt: ^0.9.0 => 0.9.0 
    vue: ^3.4.19 => 3.4.19

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@LukaszMoskwaCTW LukaszMoskwaCTW added the bug Something isn't working label Mar 7, 2024
@youkei-zzz
Copy link

Yes, I also encountered this problem

@sadeghbarati
Copy link
Collaborator

sadeghbarati commented Mar 7, 2024

Yes I think it's related to c12 (jiti), for now please copy and paste components

@megaarmos
Copy link

Yup, i'm facing the same problem too

@MasterShu
Copy link

Yes, I'm facing this problem too.

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

Successfully merging a pull request may close this issue.

5 participants