Questions tagged [bun]

Bun is a JavaScript runtime with a native bundler, transpiler, task runner and npm client built-in.

52 questions
12
votes
1 answer

A react native app with Bun runtime, possible?

Bun performance are great compared with Nodejs. It allows to run ReactJs app. Is it possible to run also a react native app with Bun js runtime?
mtoninelli
  • 686
  • 1
  • 6
  • 21
10
votes
1 answer

How to install Bun on Windows without Windows Subsystem for Linux?

I have just heard about Bun today, and I am eager to learn it. So, first thing I want to do is to install it in order to try it. However, I can't find a way to install it on my local machine. I am using Windows 11. This is what I found on the…
holydragon
  • 6,158
  • 6
  • 39
  • 62
9
votes
0 answers

How to debug JavaScript / Typescript in VSCode using Bun.sh

I have recently started playing with Bun to run typescript files without compiling them to js. So far so good. Eventually I wanted to debug at runtime but couldn't find anything about it in the docs. How can I configure my .vscode/launch.json file…
Felipe
  • 10,606
  • 5
  • 40
  • 57
6
votes
2 answers

Hot-reload (HMR) with 'bun dev'

I'm trying the new bun platform (v0.1.6) with Hono. The steps I've followed: bun create hono test-api cd test-api bun dev Then the server shows this message: $ bun dev [1.00ms] bun!! v0.1.6 Link: http://localhost:3000 When I modify any file,…
Roberto
  • 8,586
  • 3
  • 42
  • 53
4
votes
1 answer

How to use Quasar Framework and/or Vue3 with Bun.js

Using the "bun create..." command, I could create a "react" and also "next" project. It was straightforward following the instructions on the bun.js git repository. How can I use "Quasar Framework" and/or "Vue 3" with bun.js? "bun install -g…
Thiago Araujo
  • 149
  • 2
  • 14
4
votes
1 answer

bun: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by bun)

I am trying to install bun to wsl and have already added BUN_INSTALL="/home/jack/.bun" and PATH="$BUN_INSTALL/bin:$PATH" to $HOME/.bashrc and when I do bun -v the error shows up.
user16466655
  • 41
  • 1
  • 2
4
votes
7 answers

Bun Not Found After Running Installation Script

I have ran the installation script by pasting this code: $ curl https://bun.sh/install | bash However, when I try to get the version of bun, it says it could not find it: $ bun --version Command 'bun' not found, did you mean: command 'ben' from…
sno2
  • 3,274
  • 11
  • 37
4
votes
3 answers

How to install Bun via homebrew formula

I want to install Bun via homebrew but I cannot find a formula to install it.
Abhinav Kumar
  • 2,883
  • 1
  • 17
  • 30
3
votes
2 answers

Tailwind not working with NextJS + bun.sh

I am a intermediate level web dev. I recently heard of BunJS, and now playing around with it. I am working on NextJS with bun and trying to install Tailwind CSS on it, but seems like Tailwind CSS does not have official instrauction for NextJS…
kawa
  • 207
  • 1
  • 7
3
votes
1 answer

How to uninstall bun

I installed bun on windows (ubuntu) with this command: https://bun.sh/install | bash Now I want to remove bun and reinstall it (not upgrade)
Aidin53
  • 531
  • 4
  • 9
3
votes
1 answer

How do you setup types with Bun?

Bun is currently working on my local machine, but I cannot get it to show all of the typings in my IDE. How do I set this up to work in VS Code and other editors?
sno2
  • 3,274
  • 11
  • 37
2
votes
1 answer

Ruby Rails Execjs : How to create external runtime utilitizing bun.sh?

I would like to run javascript code in my ruby program. But it is very slow, so I would try to use bun.sh instead of nodejs as a runtime in execjs. How can I achieve that ? I tried this: require 'execjs' require…
Jan Černý
  • 1,268
  • 2
  • 17
  • 31
2
votes
1 answer

bun - How to get output from spawn

I'd like to the read the output of an async spawn in real time with bun import { spawn } from "bun"; const { stdout } = spawn("some command"); // doesn't work with bun (works with node.js) stdout.on('data', (chunk) => { ... }) In the example…
Laurent
  • 21
  • 2
2
votes
1 answer

How do I build and deploy a Bun app via Netlify?

So I've made a Bun app using bun create react Now I'm looking to deploy it to production (via Netlify) and am at a loss as to how. bun build doesn't seem to work. Is there a specific command that's not in the documentation?
Archie
  • 97
  • 1
  • 2
  • 6
2
votes
0 answers

Bun dev command stop working automatically

I've installed bun on a debian running with WSL2 and created a React project. So far I've tried to run "bun dev" command but it always stop automatically after 2-3 seconds with no error. I've searched but still don't found why it's making this. I've…
Flokami
  • 21
  • 1
1
2 3 4