Closed rsxdalv closed 1 month ago
Before creating components/ui/extension folder I kept getting the following error:
errno: -4058, ata/Local/npm-cache/_npx/eb88041bc59518b4/no syscall: 'open', code: 'ENOENT', /process/task_queues:95:5) { path: '...\\src\\components\\ui\\extension\\file-upload.tsx'
Can you elaborate?
The tool didn't automatically create the folders. When I created the folders myself, it worked. Until that it kept failing.
On Sat, Sep 14, 2024, 6:35 AM Mohan Ranganath Varma Vummadisetty < @.***> wrote:
Before creating components/ui/extension folder I kept getting the following error:
errno: -4058, ata/Local/npm-cache/_npx/eb88041bc59518b4/no syscall: 'open', code: 'ENOENT', /process/task_queues:95:5) { path: '...\src\components\ui\extension\file-upload.tsx'
Can you elaborate?
— Reply to this email directly, view it on GitHub https://github.com/BelkacemYerfa/shadcn-extension/issues/100#issuecomment-2350813817, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXI6HKZDLGHU4WULV3OTZWOVIHAVCNFSM6AAAAABOGISBMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHAYTGOBRG4 . You are receiving this because you authored the thread.Message ID: @.***>
The tool didn't automatically create the folders. When I created the folders myself, it worked. Until that it kept failing.
On Sat, Sep 14, 2024, 6:35 AM Mohan Ranganath Varma Vummadisetty < @.***> wrote:
Before creating components/ui/extension folder I kept getting the following error:
errno: -4058, ata/Local/npm-cache/_npx/eb88041bc59518b4/no syscall: 'open', code: 'ENOENT', /process/task_queues:95:5) { path: '...\src\components\ui\extension\file-upload.tsx'
Can you elaborate?
— Reply to this email directly, view it on GitHub https://github.com/BelkacemYerfa/shadcn-extension/issues/100#issuecomment-2350813817, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXI6HKZDLGHU4WULV3OTZWOVIHAVCNFSM6AAAAABOGISBMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHAYTGOBRG4 . You are receiving this because you authored the thread.Message ID: @.***>
Can you provide the steps to reproduce the error or what did you do so that you got that error
I made a project with shadcn, ran commands to import shadcn components.
Then ran npx @shadx/cli add file-upload
Got the failure.
Made the folder named 'extension' manually to bypass the error.
Hi @rsxdalv!
Thanks for your feedback, the cause of the issue is that there is not extension folder, and the cause of that is that you need to run the npx @shadx/cli init
this will create the extension folder and set the import aliases, after that you can run the add
command with the name of the component that you want.
By the way, given that v0 now allows to add components using shadcn CLI, would it be possible to deprecate @shadx/cli?
For example, this is now possible: npx shadcn@latest add "https://v0.dev/chat/b/..."
I will close this issue since technically it's a setup/user error.
Before creating components/ui/extension folder I kept getting the following error: