PANE

Software developers struggle with Bun's new features

17 posts since Sep 2023, all from GitHub.

“What is the problem this feature would solve? When the entry fails to load under bun watch , Bun prints the error and keeps watching, but nothing says it is waiting. Each save of an imported file prints the same error again with no line in between, so a dev server log reads like…”
GitHub
“What version of Bun is running? 1.4.6 canary.1+0966e99d8 (also observed on 1.4.4 ) What platform is your computer? Linux arm64 (Docker container) What steps can reproduce the bug? 1. Open a PostgreSQL connection pool with new Bun.SQL(url) . 2. Run SELECT 1 . 3. Close cleanly via…”
GitHub
“What version of Bun is running? 1.4.4+38afee6c8, 1.4.6+bd92f9bef, and 1.4.6 canary.1+2e321d890 What platform is your computer? Darwin 25.6.0 arm64 What steps can reproduce the bug? Six files. A plugin's onLoad is async . The entry imports lib/shared.ts , and also imports…”
GitHub

Multiple posts on GitHub detail issues and unexpected behavior encountered while using Bun, a JavaScript runtime. These include deadlocks, connection loss, TLS negotiation problems, and incorrect parsing of data types, suggesting challenges in the software’s stability and feature implementation.

devtoolsjavascriptruntimebun
FIT
0%
SIGNAL
50%
SOURCES17
FRESHEST POST3D AGO
TRACKED SINCE74D AGO

SOURCES (17)

“What version of Bun is running? 1.4.6 canary.1+0966e99d8 (also observed on 1.4.4 ) What platform is your computer? Linux arm64 (Docker container) What steps can reproduce the bug? 1. Open a PostgreSQL connection pool with new Bun.SQL(url) . 2. Run SELECT 1 . 3. Close…”

GITHUB3d ago

“What version of Bun is running? 1.4.4+38afee6c8, 1.4.6+bd92f9bef, and 1.4.6 canary.1+2e321d890 What platform is your computer? Darwin 25.6.0 arm64 What steps can reproduce the bug? Six files. A plugin's onLoad is async . The entry imports lib/shared.ts , and also imports lib/user.ts , which imports a macro whose module imports lib/shared.ts as well. preload.ts main.ts lib/shared.ts lib/a.ts lib/macro.ts lib/user.ts The same happens under bun test when bunfig.toml has [test] preload = ["./preload”

GITHUB8d ago

“What version of Bun is running? 1.4.4+38afee6c8 and 1.4.5 canary.1+4ce14ba8b (same result on 1.3.0+b0a6feca5) What platform is your computer? Linux aarch64 (PostgreSQL 12.22 in Docker on the same machine) What steps can reproduce the bug? A pool with max: 10 and idleTimeout: 5 gets one operation every 200 ms, strictly one at a time, so a single connection is always enough. The script runs the same pacing three times: plain queries, sql.begin() , and sql.reserve() , and prints how many sessions t”

GITHUB14d ago

“What is the problem this feature would solve? When the entry fails to load under bun watch , Bun prints the error and keeps watching, but nothing says it is waiting. Each save of an imported file prints the same error again with no line in between, so a dev server log reads like a crash loop when it is really one restart per save. A healthy restart is silent too, so the log never says that a file changed or that the process restarted. This script runs the same broken entry under both watchers, t”

GITHUB23d ago

“What version of Bun is running? 1.4.2+744846f84 bun v1.4.3 (2026 10 10) is also before the pool rewrite that closed 45039. That rewrite is 45304, merged 2026 10 17, and it is not in a release. What platform is your computer? Linux 6.12.94+ x86 64. PostgreSQL 15.19. What steps can reproduce the bug? One pool does not show it. Four pools, each killed by its own connection, do. The event loop is never blocked ( spawnSync is not used). 1. Start Postgres 15: 2. Save this as repro.ts : 3. Run DATABASE”

GITHUBOct 20

“What version of Bun is running? 1.4.3+c6da4a4d3 What platform is your computer? Darwin 25.6.0 arm64 arm What steps can reproduce the bug? A plain query that's waiting for a connection gets one only when no sql.begin() or sql.reserve() is waiting, even if it's been waiting longer. What is the expected behavior? The plain query is done right after transaction 1, at about 220 ms, as it is when transactions 2 to 4 aren't started. What do you see instead? The plain query waits for every transaction,”

GITHUBOct 14

“What version of Bun is running? 1.4.0+34cbb9a40. The same test also hangs on 1.4.1, 1.4.2 and 1.4.3 canary.1. What platform is your computer? Windows 11 Pro 10.0.26200, x64 What steps can reproduce the bug? You need a Postgres server. I used postgres:16 in Docker (16.14), and postgres.js 3.4.9 ( bun add postgres ). Save this as race.test.ts : Each test holds a row lock on one pool. A transaction on a second pool blocks on that lock, runs two more statements once it gets it, then throws. The test”

GITHUBOct 2

“Observed failure Bun 1.4.2+744846f84, Darwin 25.3.0 arm64, PostgreSQL 16.14 on loopback. No Stacks or bun query builder import is needed. A pool's query terminates other backends connected to its disposable database, excluding the backend executing the query. The query resolves. A later await pool.close() intermittently never settles, even after all ten onclose callbacks have fired. The self contained reproduction below failed on iteration 56 (25 second parent watchdog, exit 143). A separate two”

GITHUBSep 15

“What version of Bun is running? 1.4.0 (also reproduced on canary 1.4.1) What platform is your computer? Darwin arm64 (macOS 25.6.0) What steps can reproduce the bug? heavy.mjs : main.mjs : Run directly with the runtime — deferred evaluation works as specified (TC39 stage 3 deferred module evaluation): Now bundle it (with or without compile , with or without bytecode format=esm ): What is the expected behavior? The bundler preserves import defer semantics: the deferred module's evaluation is dela”

GITHUBSep 1

“What version of Bun is running? 1.4.0+34cbb9a40 What platform is your computer? Darwin 25.6.0 arm64 (macOS 26.6.2) What steps can reproduce the bug? Save and run this under both runtimes — no dependencies: In Node, the callback passed to net.createServer(fn) (or to super(fn) in a net.Server subclass) is registered as an ordinary 'connection' listener, so re emitting the event dispatches to it. In Bun it appears to be held internally: it still fires for genuine inbound connections, but it is invi”

GITHUBAug 31

“What version of Bun is running? 1.4.0+34cbb9a40 What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? Against PostgreSQL 18: The listener is registered, postgres is stopped for ten seconds, then brought back. What is the expected behavior? The application should be able to observe that the LISTEN connection went down. Either onconnect / onclose fire for it the way they do for pool connections, or listen() gains a counterpart to onlisten for connection loss. Th”

GITHUBAug 31

“What version of Bun is running? 1.4.0+34cbb9a40 (regression — 1.3.8 is fine) What platform is your computer? macOS 26.5, arm64 What steps can reproduce the bug? Three files. The entry module dynamically imports a loader, the loader dynamically imports a child, and the child statically imports a binding back from the entry — the cycle closes on a module that is still evaluating. entry.ts loader.ts child.ts Run it: What is the expected behavior? What Bun 1.3.8 does: Node prints the same (with expe”

GITHUBAug 31

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 6.8.0 124 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? in Node.js, it imports and does not print anything. What do you see instead? Bun outputs SyntaxError: Export named 'locks' not found in module 'node:worker threads'. Additional information the API seems to not be implemented at all”

GITHUBJun 21

“What version of Bun is running? 1.1.42+50eec0025 What platform is your computer? Darwin 24.2.0 arm64 arm What steps can reproduce the bug? 3 simple projects: my lib contains an index.ts with a simple exported function myLibFunction() my dyn lib contains an index.ts that calls myLibFunction() from my lib my app contains an index.ts that calls myLibFunction() from my lib and does an import('../my dyn lib/index.ts') my lib is imported a second time when importing(my dyn lib), if another dyn lib2 is”

GITHUBDec 2024

“What version of Bun is running? 1.1.28 What platform is your computer? Darwin 23.6.0 x86 64 i386 What steps can reproduce the bug? Hi, I want to report a couple of peculiar, possibly non standard Bun behaviour based on the attached four code snippets. It seems to me that Bun's static analysis is too aggressive in the pre execution step and considers dead parts in code during the analysis. By looking at the first code snippet, Bun throws an error at line 3 after the return statement, in unreachab”

GITHUBSep 2024

“What version of Bun is running? 1.1.21+70ca2b76c What platform is your computer? Darwin 23.5.0 arm64 arm What steps can reproduce the bug? modified from exists test: What is the expected behavior? the import will be removed: import {getUserById} from './my database'; What do you see instead? Additional information Also the typing for TranspilerOptions is wrong won't accept getStaticProps: [" N SSG", true],”

GITHUBJul 2024

“What version of Bun is running? 1.0.3 What platform is your computer? Darwin 23.0.0 arm64 arm What steps can reproduce the bug? describe('test', () = { it('test', () = { import.meta.glob('../views/ / .{vue,tsx}') }) }) What is the expected behavior? Normal use What do you see instead? 1 | describe('test', () = { 2 | it('test', () = { 3 | import.meta.glob('../views/ / .{vue,tsx}') ^ TypeError: import.meta.glob is not a function. (In 'import.meta.glob("../views/ / .{vue,tsx}")', 'import.meta.glob'”

GITHUBSep 2023

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.

Related panes

/ same corner of the problem