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 #14027

Closed
SaltyAom opened this issue Sep 19, 2024 · 1 comment
Closed

bun build cause Elysia to panic on cluster mode #14027

SaltyAom opened this issue Sep 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@SaltyAom
Copy link
Contributor

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.

@nektro
Copy link
Contributor

nektro commented Sep 19, 2024

PR linked above should have fixed this but did not link it. if the issue persists please let us know

@nektro nektro closed this as completed 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

4 participants