N
Nuxt5mo ago
Basti

Module not found when trying to install a shadcn module

I just started a new project and am trying to install a simple dropdown menu with shadcn but am getting this error that I don't know what to do about. At first I thought it might be due to the path length being too long so I tried editing the registry key to allow longer paths and I also set the max path to a higher number in .npmrc, to no avail. Clearing the pnpm cache and reinstalling node_modules did nothing either.
- Operating System: Windows_NT
- Node Version: v20.16.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: -
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, css, app, postcss, modules, shadcn
- Build Modules: -
- Operating System: Windows_NT
- Node Version: v20.16.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: -
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, css, app, postcss, modules, shadcn
- Build Modules: -
No description
1 Reply
Basti
BastiOP5mo ago
The problem was with the latest version of shadcn-vue (v0.10.5) so rolling back to 0.10.4 is a temporary fix. This seems to only affect Nuxt. There is already a github issue on it.
GitHub
[Bug]: v0.10.5 - Unable to add components using npx · Issue #560 · ...
Reproduction Use the CLI Describe the bug Since the latest release the npx shadcn-vue@latest add tabs helper no longer works. Currently using 0.10.4 to keep functionality going. System Info System:...
Want results from more Discord servers?
Add your server