Skip to content

[Bug]: Cannot add new components to existing project #1163

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

Open
2 tasks
atymic opened this issue Apr 8, 2025 · 1 comment
Open
2 tasks

[Bug]: Cannot add new components to existing project #1163

atymic opened this issue Apr 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@atymic
Copy link

atymic commented Apr 8, 2025

Reproduction

N/A

Describe the bug

This is the same error as: #1121

Removing the temp dir does not resolve the issue.

[8:06:33 PM] this is error:  Invalid src or dest: cp returned EINVAL (cannot copy /Users/user/code/calndr2/node_modules/update-browserslist-db/cli.js to a subdirectory of self /Users/user/code/calndr2/node_modules/update-browserslist-db/cli.js) /var/folders/jz/hl2919112fl_9q53b99f57k80000gn/T/shadcn-vue/browserslist/node_modules/.bin/update-browserslist-db

    at onLink (node:internal/fs/cp/cp:349:11)
    at async copyDir (node:internal/fs/cp/cp:321:19)
    at async copyDir (node:internal/fs/cp/cp:321:19)
    at async copyDir (node:internal/fs/cp/cp:321:19)
    at async copyDir (node:internal/fs/cp/cp:321:19)
    at async updateFiles (/Users/user/.npm/_npx/360157ef5dc9b5fb/node_modules/shadcn-vue/dist/index.js:2211:5)
    at async addProjectComponents (/Users/user/.npm/_npx/360157ef5dc9b5fb/node_modules/shadcn-vue/dist/index.js:2373:3)
    at async addComponents (/Users/user/.npm/_npx/360157ef5dc9b5fb/node_modules/shadcn-vue/dist/index.js:2347:10)
    at async Command.<anonymous> (/Users/user/.npm/_npx/360157ef5dc9b5fb/node_modules/shadcn-vue/dist/index.js:2872:5)

[8:06:33 PM]  ERROR  Invalid src or dest: cp returned EINVAL (cannot copy /Users/user/code/calndr2/node_modules/update-browserslist-db/cli.js to a subdirectory of self /Users/user/code/calndr2/node_modules/update-browserslist-db/cli.js) /var/folders/jz/hl2919112fl_9q53b99f57k80000gn/T/shadcn-vue/browserslist/node_modules/.bin/update-browserslist-db

System Info

System:
    OS: macOS 15.4
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 43.64 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.3.0 - ~/.nvm/versions/node/v22.3.0/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.8.1 - ~/.nvm/versions/node/v22.3.0/bin/npm
    bun: 1.2.8 - /usr/local/bin/bun
    Watchman: 2025.03.10.00 - /usr/local/bin/watchman
  Browsers:
    Chrome: 135.0.7049.42
    Edge: 135.0.3179.54
    Safari: 18.4
  npmPackages:
    @vueuse/core: ^12.8.2 => 12.8.2 
    radix-vue: ^1.9.13 => 1.9.13 
    vue: ^3.5.13 => 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
@atymic atymic added the bug Something isn't working label Apr 8, 2025
@neo693
Copy link

neo693 commented Apr 13, 2025

same problem

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

2 participants