ui icon indicating copy to clipboard operation
ui copied to clipboard

fix: npx shadcn@latest init --force --silent --yes --defaults fails to initialize project

Open vomaksh opened this issue 8 months ago • 4 comments

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 avatar Apr 06 '25 08:04 vomaksh

@vomaksh is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 06 '25 08:04 vercel[bot]

much needed if it works, did you ran all tests?

like running the cli, pnpm:format and pnpm:check?

nrjdalal avatar Apr 22 '25 01:04 nrjdalal

Yes, I ran the cli locally. I ran the following commands to run the cli

  • pnpm build --filter=shadcn
  • cd packages/shadcn && npm link
  • npx shadcn init --force --silent --yes --defaults

vomaksh avatar Apr 22 '25 06:04 vomaksh

Ran the following commands as you specified

  • pnpm format:write --filter=shadcn
  • pnpm format:check --filter=shadcn These went fine. No errors.

vomaksh avatar Apr 22 '25 06:04 vomaksh