ui
ui copied to clipboard
[bug]: npx shadcn@latest init --force --silent --yes --defaults
Describe the bug
Hello.
Cursor can't initialize without question.
react-v19 % npx shadcn@latest init --force --silent --yes --defaults
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.
Validation failed:
- tailwind: Required
react-v19 % npx shadcn@latest init
✔ Preflight checks.
✔ Verifying framework. Found Vite.
✔ Validating Tailwind CSS config. Found v4.
✔ Validating import alias.
✔ Which color would you like to use as the base color? › Neutral
✔ Writing components.json.
✔ Checking registry.
✔ Updating src/index.css
Installing dependencies.
It looks like you are using React 19.
Some packages may fail to install due to peer dependency issues in npm (see https://ui.shadcn.com/react-19).
✔ How would you like to proceed? › Use --force
✔ Installing dependencies.
✔ Created 1 file:
- src/lib/utils.ts
Success! Project initialization completed.
You may now add components.
Affected component/components
CLI
How to reproduce
npm create vite@latest react-v19 -- --template react-ts
cd react-v19
npm install three @react-three/fiber@9 @react-three/drei@10 @react-three/rapier@2 zustand motion socket.io-client tailwindcss @tailwindcss/vite
npm install -D @types/node @types/three
# I've done all the tailwind configurations
npx shadcn@latest init --force --silent --yes --defaults
Codesandbox/StackBlitz link
No response
Logs
System Info
Vite, Tailwind v4, React 19
Before submitting
- [x] I've made research efforts and searched the documentation
- [x] I've searched for existing issues
Looks like there's a bug in --defaults, can you try the following?
npx shadcn@latest init --force --silent --yes --base-color neutral
Looks like there's a bug in
--defaults, can you try the following?
npx shadcn@latest init --force --silent --yes --base-color neutral
react-v19 % npx shadcn@latest init --force --silent --yes --base-color neutral
✔ Writing components.json.
Success! Project initialization completed.
You may now add components.
Yeah, that works, thanks.
@shadcn I tried fixing this bug at #7134. If there is something wrong with my approach please tell me.
@shadcn @vomaksh is right, npx shadcn@latest -d --base-color neutral works, the base color has no default as of yet