268 questions
-3 votes
1 answer
65 views
"TypeError: method is not a function" when invoking methods on objects deserialized from a JSON file [duplicate]
I'm working on a project from Roadmap.sh with TypeScript (v5.9.3) running on Bun (v1.3.3 on a Linux x64 VM). Currently I'm writing the data access logic, implemented using the Repository pattern, but ...
1 vote
0 answers
30 views
Bun + Express on Vercel: How to Modularize Routes from Separate Files?
I'm deploying a Bun + Express application to Vercel. Locally, my Express app works perfectly with routes defined in separate files and imported into index.ts. However, on Vercel, the deployment ...
Advice
0 votes
2 replies
57 views
How to use Bun for frontend and backend at the same time?
Bun supports React, it can do SSR, it can work as backend server with routing etc. I am trying to figure out if there is an elegant way to create a fullstack application as a single project. I am ...
0 votes
1 answer
115 views
Using TailwindCSS v4 in Bun SSR - how can I integrate it?
The TailwindCSS website currently doesn't have any guidance related to Bun, so it's difficult for me to figure out how to properly integrate v4 with Bun SSR. I found a bun-plugin-tailwind dependency ...
-1 votes
1 answer
133 views
How to manage environment variables if I initialize Bun + React project using "bun init" then select "React"?
I have created a .env file then I have written this code: VITE_API_URL=http://localhost:5000/api I have applied the "VITE_API_URL" environment variable, but it gives an error. I also tried ...
0 votes
1 answer
84 views
why my bun with cache with docker is slower than node.js without a cache (i'm running both of them on localhost)
when i test my code with jmeter my average respond time on the bun with cache is higher that node.js that dont, i using 100 thread with period 1 second, but it seems the standard deviation is better ...
0 votes
0 answers
180 views
Bun install fails for private Git repo even with .npmrc and env variable for Bitbucket token
I'm trying to install a private Bitbucket Git repository as a dependency in my project using Bun v1.2.10 on Windows. My package.json dependency: "dependencies": { "@repo/sdk": &...
2 votes
0 answers
145 views
Unable to run Inngest dev server using Bun (inngest-cli not recognized)
According to the official Inngest documentation, I’m setting up Inngest with a Next.js App Router project using the Bun runtime. I followed the installation steps exactly as described. However, when I ...
1 vote
1 answer
127 views
Npm Commands such as: npm create vite@latest or npm start don't work after installing Bun on WIndows 11
Since installing bun on my Windows 11 pc and using node.js with npm for a several years, all of the npm functionality have crashed such as npm start and npm create in react.js and react-native. Also ...
2 votes
1 answer
66 views
SVG started to work after I re-save without changing anything
I'm building a website using React with Bun, also Tailwind 4. (Don't think this matters, but anyway) import logo1 from "./logo_stroke.svg"; import logo2 from './assets/logo_stroke.svg'; .......
1 vote
0 answers
125 views
import.meta.env and Bun.env undefined in pure bun project
I created a bun project: bun init --react and then added .env file along project.json: BUN_PUBLIC_BAR="BAR1" BUN_PUBLIC_FOO="FOO1" my bunfig.toml: [serve.static] env = "...
1 vote
2 answers
221 views
Bun with uWebSockets -- node version error on Linux
Gentoo Linux. Node v22.13.1. bun --watch ./uws/uws.js 17 | 18 | module.exports = (() => { 19 | try { 20 | return require('./uws_' + process.platform + '_' + process.arch + '_' + ...
0 votes
0 answers
60 views
How to enable metal is being used by tensorflow.js with node/Bun
Please comment how to enable Metal with tfjs-node on MacOS +Metal isn't ready with tensorflow (c++) on the server side. bun ./verify-backend.js const tf = require('@tensorflow/tfjs-node'); async ...
0 votes
0 answers
49 views
How can i use arcjet with bun & express
I'm trying to use arcjet middleware to protect my express routes against spamming and bots but in their documents i only get option for plain bun or node.js and express, while i'm using bun & ...
1 vote
0 answers
71 views
TypeScript throwing error: 2339 - Property user doesn't exist on type
user.routes.ts: import { Elysia } from "elysia"; import { authMiddleware } from "../middleware/isAuthenticated"; export const usersRoutes = new Elysia({ prefix: "/users" ...