-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Bun support #403
Comments
it happened on my side too. |
true true just run |
refer to this oven-sh/bun#4664 |
I took a look around and a lot of interactive cli stuff is having issues. But here's one that says it's fixed in the upcoming bun release which was 1.0 at the time (@clack/prompts on npm) but I've been running it on Bun 1.0 and still have the same bug. |
@olafur-palsson Hi, for me Bun with In @clack/prompts to test is easy, just clone that repo, and run |
@sonyarianto Try running this one:
I didn't read |
Hmmm with Bun 1.0.2 above script also still not working properly. |
@olafur-palsson butttt if you modify the code like this, inside the async then it will work smoothly.
import * as p from '@clack/prompts';
async function main() {
const response1 = await p.text({
message: 'Where should we create your project?',
placeholder: './lol',
});
const response2 = await p.text({
message: 'Where should we create your project?',
placeholder: './lol',
});
}
await main();
|
This issue has already been addressed in the latest release of Bun, v1.0.18. You can find more details about the fix in the release notes: Bun v1.0.18 Release Notes. |
Confirmed that this is no longer an issue with Bun v1.0.18, so this issue can probably be closed. |
This can still happen on Bun, even after their v1.0.18 version. Here's a repro/bug on Bun's issue tracker: oven-sh/bun#9855 (comment) |
Is your feature request related to a problem?
This is something odd I noticed. It looks like in general prompts works except when you run two question sequentially.
Describe the solution you'd like
It works when running with bun like when running with node.
Describe alternatives you've considered
Using node lol.
Additional context
None
The text was updated successfully, but these errors were encountered: