Adding shadcn to my nuxt project using layers #970
Unanswered
torbentschechne
asked this question in
Q&A
Replies: 1 comment
-
Hey @torbentschechne We are also using layers a lot, but haven't been able to get this to work with tailwind v4 yet. It depends on your setup, as i have not all the information but if you have installed Nuxt in the packages/core and install the module also there, where you keep your component then you should also run the command from there. Regarding the error, did you run nuxt prepare? |
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
-
Hey guys,
I followed the installation to add the shadcn nuxt module to my project.
I have a structure like this:
The
packages/core
stuff is an layer that provides all components etc that the apps will use commonly. I added the nuxt module while being in the pathfrontend/packages/core
. The docs now state that I should run this command:npx shadcn-vue@latest init
Now I wonder, where should I run this command? In the
frontend/packages/core
or in theroot
or infrontend/apps/app
. My assumption would be to run it in thefrontend/packages/core
as here I've added the module. Is that correct?Edit: And another question, my shadcn config object in the nuxt config get's this error:
Beta Was this translation helpful? Give feedback.
All reactions