Open SaltyAom opened 2 months ago
From https://github.com/oven-sh/bun/issues/14027
What version of Bun is running? 1.1.28 What platform is your computer? Darwin 24.0.0 arm64 arm What steps can reproduce the bug? Clone repro git clone http://github.com/saltyaom/elysia-cluster-demo Build cd elysia-cluster-demo && bun run build Run bun ./dist/index.js What is the expected behavior? It should not crash What do you see instead? TypeError: Y of p1 is not a function. (In 'Y of p1(H)', 'Y of p1' is undefined) Additional information Bundled code using Bun build cause panic on run. This error only happens on Bun 1.1.28 and not on previous versions.
1.1.28
Darwin 24.0.0 arm64 arm
git clone http://github.com/saltyaom/elysia-cluster-demo
cd elysia-cluster-demo && bun run build
bun ./dist/index.js
It should not crash
TypeError: Y of p1 is not a function. (In 'Y of p1(H)', 'Y of p1' is undefined)
Bundled code using Bun build cause panic on run.
This error only happens on Bun 1.1.28 and not on previous versions.
I couldn't reproduce this, for me it doesn't crash. But actually, it doesn't act as a cluster, only the first instance is responding.
bun -v 1.1.29
From https://github.com/oven-sh/bun/issues/14027