Skip to content
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]: create-next-app errors are replaced with generic error message #5585

Closed
2 tasks done
Yonom opened this issue Oct 26, 2024 · 1 comment
Closed
2 tasks done

[bug]: create-next-app errors are replaced with generic error message #5585

Yonom opened this issue Oct 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Yonom
Copy link

Yonom commented Oct 26, 2024

Describe the bug

When triggering a new project via the shadcn CLI (running it in a folder without package.json), the create-next-app CLI errors are not displayed to the user (e.g. project name can only contain lower case letters)

Affected component/components

npx shadcn

How to reproduce

npx create-next-app AAAA

Could not create a project called "AAAA" because of npm naming restrictions:

  • name can no longer contain capital letters

npx shadcn@latest add button

✔ The path / does not contain a package.json file. Would you like to start a new Next.js project? … yes
✔ What is your project named? … AAAA
⠼ Creating a new Next.js project. This may take a few minutes.
Something went wrong creating a new Next.js project. Please try again.

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

-

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@Yonom Yonom added the bug Something isn't working label Oct 26, 2024
@shadcn
Copy link
Collaborator

shadcn commented Oct 28, 2024

I'm working on a fix. Let's use #5557 to track since they are related.

@shadcn shadcn closed this as completed Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants