Skip to content

Conversation

@vomaksh
Copy link

@vomaksh vomaksh commented Apr 6, 2025

Addresses #7071

The issue was

Validation failed:
- tailwind: Required

It was caused by baseColor = null when initializing project with --defaults which broke zod validation.

@vercel
Copy link
Contributor

vercel bot commented Apr 6, 2025

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

A member of the Team first needs to authorize it.

@vomaksh vomaksh changed the title fix: init with --defaults bug fix: npx shadcn@latest init --force --silent --yes --defaults fails to initialize project Apr 6, 2025
@nrjdalal
Copy link
Contributor

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

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

@vomaksh
Copy link
Author

vomaksh commented Apr 22, 2025

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
Copy link
Author

vomaksh commented Apr 22, 2025

Ran the following commands as you specified

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants