bun Questions

4

Solved

I'm creating a react app using bun.sh. But I also use tailwindcss for styling and tailwind has no official solution for bun. How can use these two together? I know bun is not ready for production b...
Cubiform asked 9/7, 2022 at 7:51

3

How do I check whether a folder already exists using Bun? I tried the following without success: const path = "folderName" const file = Bun.file(path) await file.exists() Based on the gu...
bun
Taub asked 30/10, 2023 at 12:8

3

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?
Rooted asked 7/7, 2022 at 18:6

1

I installed bun.js vs code plugin and have some success debugging typescript files with provided config. Also able to debug one test file if I set program:${file} But there is no launch.json exampl...
Valero asked 12/9, 2023 at 2:47

1

Is it possible to have Bun bundle my TypeScript on file save in VS Code? The guide says I can call bun run index.ts in the command line and add it to the package.json like so but I don't know how t...
Spoof asked 3/7, 2024 at 18:23

2

Solved

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)
Morril asked 15/7, 2022 at 6:43

4

In my case I am using eslint on nextjs with eslint-config-next. I use bun as a package manager but I found instances of this issues on npm and yarn as well. I didn't add any new package but after r...
Saiff asked 11/11, 2023 at 7:0

13

Solved

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
Toplofty asked 7/7, 2022 at 18:31

3

Solved

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 Lin...
Oni asked 2/8, 2022 at 13:58

6

Solved

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 ...
Stipulation asked 7/7, 2022 at 3:20

1

I am trying to use bun instead of npm in docker. I have bun docker image but when I try to build inside a container an error shows that it can not find postcss config. I have my package.json set to...
Polygamy asked 13/9, 2023 at 9:14

2

Solved

I am just getting started using drizzle and created a simple table in a seperate schema file: import { pgTable, serial, text, varchar } from "drizzle-orm/pg-core"; export const users =...
Limacine asked 25/10, 2023 at 7:4

1

Solved

The problem I'm experiencing I installed Bun in WSL and connected to it via VS Code, but when I tried to use Bun.serve in my code, VS Code shows an error saying Cannot find name 'Bun'. I know this ...

2

Solved

I want to read yarn.lock file and generate bun.lockb from that with the same dependencies to be used in bun install, without this bun is creating the deps based on package.json and is big projects ...
Antiquarian asked 15/12, 2022 at 10:34

3

Using the bun create [..] command, I could create a react and a next project. It was straightforward following the instructions on the bun git repository (update: most instructions can be found at ...
Supat asked 23/7, 2022 at 4:24

2

I'm migrating a Laravel+Sail project to use bun instead nodejs. According the Bun docs, after run bun i, a binary lockfile named bun.lockb (similar to yarn.lock) is created to increase performance....
Hacker asked 12/9, 2023 at 23:35

1

Solved

I am currently having a project that uses nestjs and I was wondering how compatible is it with bun 1.0. I haven't found a clear answer on the internet and I don't want to transfer my project on bun...
Yamen asked 11/9, 2023 at 19:10

1

Solved

I am trying to migrating my Node.js project to Bun. My project uses the 'fs' package in many places. I found many Bun migration examples where they import the 'fs' package as 'node:fs'. But importi...
Kierstenkieselguhr asked 10/9, 2023 at 12:59

1

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 doc...
Hanako asked 20/1, 2023 at 18:15

1

Solved

I'm a newbie with Puppeteer but I try to use it to run my E2E tests. My JS runtime is Bun (v.0.6.9) and puppeteer should work. Below, a simple test throwing a puppeteer error I can't fix. describe(...
Dougherty asked 17/6, 2023 at 12:21

3

Solved

I want to install Bun via homebrew but I cannot find a formula to install it.
Almeria asked 6/7, 2022 at 15:50

1

Bun performance is great compared with Node.js. It allows to run a React app. Is it also possible to run a React Native app with the Bun runtime?
Nne asked 11/7, 2022 at 9:33
1

© 2022 - 2025 — McMap. All rights reserved.