ui
ui copied to clipboard
fix: npx shadcn@latest init --force --silent --yes --defaults fails to initialize project
Addresses #7071
The issue was
Validation failed:
- tailwind: Required
It was caused by baseColor = null when initializing project with --defaults which broke zod validation.
@vomaksh is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.
much needed if it works, did you ran all tests?
like running the cli, pnpm:format and pnpm:check?
Yes, I ran the cli locally. I ran the following commands to run the cli
pnpm build --filter=shadcncd packages/shadcn && npm linknpx shadcn init --force --silent --yes --defaults
Ran the following commands as you specified
pnpm format:write --filter=shadcnpnpm format:check --filter=shadcnThese went fine. No errors.