Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun build cause Elysia to panic on cluster mode #835

Open
SaltyAom opened this issue Sep 19, 2024 · 0 comments
Open

bun build cause Elysia to panic on cluster mode #835

SaltyAom opened this issue Sep 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SaltyAom
Copy link
Member

SaltyAom commented Sep 19, 2024

From oven-sh/bun#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?

  1. Clone repro
git clone http://github.com/saltyaom/elysia-cluster-demo
  1. Build
cd elysia-cluster-demo && bun run build
  1. 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.

@SaltyAom SaltyAom added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant