The shadcn-vue CLI (verified against
https://www.shadcn-vue.com/docs/installation/vite) requires path
aliases declared with both baseUrl and paths in tsconfig.json AND
tsconfig.app.json. Without baseUrl the CLI's resolvedPaths validator
fails with:
Validation failed:
- resolvedPaths: Required,Required,Required,Required,Required
(one Required per declared alias under "aliases" in components.json).
Also drop two stale keys from components.json that newer shadcn-vue
schema versions reject:
- "framework": "vite" → no longer part of the schema
- "tailwind.config": "" → empty string fails validation; field is
optional for Tailwind 4 (no JS config file)
After this commit, "pnpm dlx shadcn-vue@latest add <component>"
succeeds out of the box.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>