Closed onurusluca closed 1 month ago
Of course just after 5 minutes of posting the question, I find the answer. :D
Fix:
shadcn: {
prefix: "",
componentDir: "./app/components/ui", // Change to new directory
},
Change your componentDir to new components directory, It was componentDir: "./components/ui"
before.
Just an FYI: I had to change some of my imports that are outside of the "app" folder because now @ or ~ not points to "app" not "/".
Thank you @onurusluca ! I was facing the same problem, I didn't realized that @ do not work here.
Reproduction
Sorry, tried but can't get StackBlitz or CodeSandbox working.
Describe the bug
Even with TypeScript installed as a dependency, with Nuxt 4, getting this error. This was resolved before with Nuxt 3 versions by installing TypeScript.
Reproduction: I am sorry I wasn't able to add a reproduction. If someone can share, it'd be much appreciated. Use Nuxt 4, add Shadcn-vue, pnpm dev.
System Info
Contributes