-
Notifications
You must be signed in to change notification settings - Fork 2.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
generalised issues with bun create
command
#4646
Comments
I have the same issue with |
Same problem form me, pretty frustrated when the most basic scaffolding can't even work. |
Also on windows 10 wsl, bunx DOES NOT run for me, but bun x does, however, 👍 bun create react-ssr bun x create-next-app bun create react-ssr |
refer to #4664 |
Same thing on Linux:
|
Same on macOS:
M1 Mac:
|
|
Same in docker container (Linux amd64)
|
I don't think |
I have the same issue running MacOS Ventura 13.5.1. Running something like
|
Same here on Ubuntu
|
Same om Mac Ventura 13.4.1 |
|
React: |
@arunattri26 @iliareshetov using these don't get us the benefits of Bun. It uses non optimized templates afaik. +1 for the issue on my side as well, Mac M1 on Ventura 13.5.1:
|
Hello @Yonben , It appears that there might be a slight misunderstanding. Using On the other hand, it's worth noting that creating a React application through create-react-app is not the recommended method according to the official React documentation. You may want to refer to their guidance on Starting a New React Project. |
@iliareshetov thanks for the answer! They also add the following note at the start
I mostly wish things were clearer then 😓 |
My terminal still freezing on variant selection. For context, I'm on Win 10 WSL 2 Ubuntu 22.04.2 LTS |
Hello @artenlf, I encountered a similar issue on a Windows machine, but I was able to resolve it by upgrading Git to the latest version. I suggest giving it a try! |
Thanks @iliareshetov. Still doesn't work even upgrading Git to version 2.42.0. |
Vite freezes on the second input (The one to select between typescript and javascript). Didn't try next.js yet |
To anyone expecting When you run The Also, use Vite, |
I haven't been able to get any Svelte will run but when you get past the first input, it takes your inputs and displays them in the console. The program has effectively terminated. Next will refuse to run due to "process.binding('fs') not being supported by Bun." Vite will run but freeze once you get to the second question. I was looking forward to trying the 1.0 release of Bun, but seems there's some issues to be worked out; in the meanwhile, can still benefit from the rest it has to offer! |
Even if vite did work, to my understanding we would not be getting the full power of Bun because it would not be using Bun's bundler and runtime. Right? For react purposes (since this issue seems to have mostly devolved into vite/react project creation) it seems to me that the creators of Bun need to come up with their own react template that uses Bun end-to-end; otherwise, we're just trying to create a half-baked solution that doesn't really leverage the full benefits of Bun. (FWIW - the nextjs template also doesn't use Bun's bundler etc - the docs say so themselves!) |
The mechanism why it doesn't work is clear, but the issue is that this is how a lot of people start to try bun, because it's been said in multiple places that this is the way. For example:
I saw both these thinking should I now finally check out Bun - so far, not a great experience 😬 [Edit] I have looked at the first page multiple times and just now noticed the deprecation message while editing this comment of mine. Neat that the text there is large but still it's not nearly obvious enough that this page is not to be trusted |
Same issue on
|
Same issue on ubuntu 20.04 bun version 1.0.1 |
tldr: Previously, bun create used an internal list of sample projects that we maintained. We've since switched it to match npm and others, so If you run No longer valid$ bun create react Use this instead$ bun create vite
$ bun create react-app |
Colin - if it's a duplicate please post the issue track as you did with WSL freeze #4664 I still get the error on bun 1.01 - at the very least the instructions are incorrect. Not supporting ReactJS is a potential showstopper:
|
It's not an issue — Previously, We'll "solve" this issue by printing a more informative error message when |
bun create react-app still calls create-react-app and fails:
1102 | res => { 'bun create vite -- --template' in vscode creates a vite project without freezing. In summary: $bun create vite -- --template' works in vscode bash terminal. |
This is a separate issue - that something in |
Think you were ahead of my edit @Jarred-Sumner |
No it isn't. reactjs/react.dev#5487 (comment) |
if this does not work in stable way, why bun include this in official guides... |
What version of Bun is running?
1.0.0
What platform is your computer?
Powershell
Microsoft Windows NT 10.0.22621.0 x64
WSL2 Ubuntu 22.0
Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
bun create react
-> error: could not determine executable to run for package create-react
and
bun create vite
What is the expected behavior?
The handler from bun hangs when trying to create a vite fronted application. It locks out the whole terminal and no exit commands would work, I thoroughly waited for 20 minutes and no resolve.
The text was updated successfully, but these errors were encountered: