Next.js Discord

Discord Forum

Something went wrong creating a new Next.js project. Please try again.

Answered
Caribbean Elaenia posted this in #help-forum
Open in Discord
Caribbean ElaeniaOP
Hello,

Any help would be greatly appreciated.

When trying to run bun with shadcn: bunx --bun shadcn@latest init

I receive the error:
bunx --bun shadcn@latest init
✔ The path /home/henry/project does not contain a package.json file.
  Would you like to start a new project? › Next.js
✔ What is your project named? … my-app
⠧ Creating a new Next.js project. This may take a few minutes.
Something went wrong creating a new Next.js project. Please try again.
Answered by Caribbean Elaenia
The solution to this is:
bun upgrade --canary
View full answer

1 Reply

Caribbean ElaeniaOP
The solution to this is:
bun upgrade --canary
Answer