shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
72.43k stars 4.39k forks source link

[bug]: Next.js init doesn't work #5477

Open bryanhpchiang opened 3 hours ago

bryanhpchiang commented 3 hours ago

Describe the bug

creating new project with Next.js is broken just following instructions here: https://ui.shadcn.com/docs/installation/next

✔ What is your project named? … client
✔ Creating a new Next.js project.
✔ Writing components.json.
✔ Checking registry.
⠋ Updating tailwind.config.js
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

ENOENT: no such file or directory, open '/.../client/tailwind.config.js'

Affected component/components

project

How to reproduce

  1. open terminal
  2. run npx shadcn@latest init -d

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

macOS 14.1 / npm 10.9.0

Before submitting

bryanhpchiang commented 3 hours ago

tailwind.config.ts exists, but not tailwind.config.js