Open iam-hussain opened 1 year ago
For me it freezes at choosing Typescript. I have to kill the terminal.
➜ bunx create-next-app@latest
✔ What is your project named? … test-bun-1
? Would you like to use TypeScript? › No / Yes
➜ bun --version
1.0.0
OS: Ubuntu 22.04.3
@kopparam refer to this #4664
Using the oven/bun
docker image.
root@0b616bee0a8a:/home/bun/app# bun --version
1.0.1
root@0b616bee0a8a:/home/bun/app# bunx create-next-app@latest
error: SystemResources
----- bun meta -----
Bun v1.0.1 (31aec4eb) Linux x64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.11-1rodete2 (2023-08-24)
BunxCommand:
Elapsed: 19ms | User: 4ms | Sys: 14ms
RSS: 33.55MB | Peak: 19.05MB | Commit: 33.55MB | Faults: 0
----- bun meta -----
0 0x5600a249ae2b
1 ???
2 ???
3 ???
4 ???
5 ???
Crash report saved to:
~/.bun-crash/v1.0.1-1694794113899.crash
Search GitHub issues https://bun.sh/issues or ask for #help in https://bun.sh/discord
I was excited to give bun a try and wanted to see how it works for a simple next-js app. Please suggest if there are known workarounds.
everytime after running command to make nextjs app and for react native it start making with yarn
$ bunx create-next-app@latest
error: Script not found "create-next-app@latest"
This is confusing but each of the errors shown here have different causes
The OP's error: Unexpected
is very likely fixed by now, as we've made lots of changes in the time since. If it continues to happen, we should have a different error message at least that is more clear.
@rohan3155 it looks like it somehow got into a state where bunx
is no longer an alias of bun
, or bun
is unaware of the existence of bunx
. Can you file a separate issue for that and include whether you're running on Linux, macOS, or WIndows?
I wrote it like this bunx create next-app@latest instead of bunx create-next-app@latest and it worked with me
create next-app@latest with bunx
When I tried "bunx create-next-app@latest," it said "script not found." However, when I tried "bunx create next-app@latest," it worked. The thing that continues to amaze me is that, even after taking all the requirements, "npm install" rather than "bun install" is used to install the program.
I wrote it like this bunx create next-app@latest instead of bunx create-next-app@latest and it worked with me
Thanks, your solution is right
guys!! run bunx create next-app
instead of bunx create-next-app
Thanks for your help @abdulApp, I was very stressed about the bunx create-next-app
command. It is better to use the bunx create next-app
command.
everytime after running command to make nextjs app and for react native it start making with yarn
$ bunx create-next-app@latest error: Script not found "create-next-app@latest"
have you found any solution?
Stuck in the same problem
everytime after running command to make nextjs app and for react native it start making with yarn
$ bunx create-next-app@latest error: Script not found "create-next-app@latest"
have you found any solution?
it worked
bunx create next-app@latest
I wrote it like this bunx create next-app@latest instead of bunx create-next-app@latest and it worked with me
This solution works
guys that's not a solution as shadcn scripts also rely on bun and it's showing not found there as well, still stuck on this. Previously it was all working fine
After using "bunx create next-app", it says resolving [1/1] and got stuck. Waiting for any helping hand.
What version of Bun is running?
1.0.0
What platform is your computer?
Darwin 22.5.0 x86_64 i386
What steps can reproduce the bug?
Run
bunx create-next-app
✔ What is your project named? my-app ✔ Would you like to use TypeScript? Yes ✔ Would you like to use ESLint? Yes ✔ Would you like to use Tailwind CSS? Yes ✔ Would you like to usesrc/
directory? Yes ✔ Would you like to use App Router? (recommended) Yes ✔ Would you like to customize the default import alias? NoCreating a new Next.js app in ....
Ref:
What is the expected behavior?
Create the NEXT JS application successfully and I will be able to run
bun run dev
What do you see instead?
On
bun run dev
Additional information
https://app.warp.dev/block/8c1hJUg5kxvplwscni2820