-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: npx shadcn init hangs while creating nextjs project #5508
Comments
me too |
Me too. Is this caused by the NextJS15 released last night, where it supports React@19 RC? clean install of Dependency errors, maybe? |
Great sleuthing there! Sounds like a strong possibility. |
I'm having the same problem it was working yesterday in the morning |
Same problem for me. Peer dependency issue for sure because of the different react version. If you need it asap, you can use the --legacy-peer-deps flag: This works for now and we should then later be able to update it to the latest version 😄 |
Thanks for the response and suggestion. Unfortunately this command still causes it to hang while creating the Next.js project. I was, however, able to do "npx [email protected]", followed by "npx shadcn init", and it seems to scaffold everything correctly. I believe Next.js version before the breaking change is 14.2, so this puts the project one version behind current. I think once things are fixed, the update to Next.js 15 should be simple. Still would rather just have the simple "npx shadcn init" worrking correctly! |
how would I do this to work with V0's block system |
Was an issue with React 19 peer deps. I temporarily pinned the deps. Should be okay now. Let me know if not. |
I'm working on a fix. Let's use #5557 to track since they are related. |
Describe the bug
When I run the command "npx shadcn init" or "npx shadcn@latest init", I'm prompted with the first two questions (Would you like to start a new nextjs project/What is your project's name). Once I select the name, the CLI says "Creating a new Next.js project. This may take a few minutes.". But it just sits there indefinitely and never creates anything, forcing me to eventually terminate the process. This was working fine 2 days ago, but I've been getting this bug since yesterday afternoon. Have verified this bug is operating similarly on 2 of my machines, and I had my friend verify on his machine as well.
Affected component/components
All
How to reproduce
Run "npx shadcn init" command and try to start a new nextjs project.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: