ShadCN UI CLI not respecting aliases and installing components, lib in laravel 11 project root #5466
dev-carbon
started this conversation in
General
Replies: 2 comments
-
|
I also encountered this issue just now, I am using astrojs and I have updated my |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is a bug |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently using Laravel with Breeze, Inertia.js, and React. Initially, all components installed via ShadCN were placed in
resources/js/components. However, after running the following command to add new components:npx shadcn@latest add [component]
The new component gets created in the root directory of my project.
Despite specifying the
--pathoption, it doesn't place components underresources/js/shadcn, which is the intended directory.###Steps I have tried:
--pathoption with the correct directory.components.jsonand Vite'svite.config.js.I would like the ability to directly add ShadCN components to the
resources/js/shadcndirectory without having to move them manually after each addition.Has anyone else encountered this issue, or is there a way to configure the path correctly when using
npx shadcn add?Beta Was this translation helpful? Give feedback.
All reactions