Open erik-balfe opened 1 month ago
I believe this issue is specifically related to wasm dependencies, as I have only encountered it with wasm packages in the error messages, and not with any others.
I face this problem on one of my machines very rarely when launching the same binary built with Bun. Most of the time, it works well. However, in all other environments (GitHub Actions, Docker, and other Linux machines), it occurs every time, despite using the exact same binary everywhere.
What version of Bun is running?
1.1.30
What platform is your computer?
Ubuntu 20.4 and docker image "oven/bun:1.1.30"
What steps can reproduce the bug?
llamaindex
and other dependencies (fullpackage.json
available if needed, but currently llamaindex is enough for reproducing the error).build.ts
) that usesbun build
with the following options:bun run build
.What is the expected behavior?
The Docker-built executable should have the same size and functionality as the locally-built executable.
What do you see instead?
Additional information
oven/bun:1.1.30
image and a custom Ubuntu-based image with Bun 1.1.30 installed.bun.lockb
, ensuring consistency between local and Docker environments.tiktoken_bg.wasm
file in the build process did not resolve the issue.cjs
,esm
). All that i found in docs for --compile.tiktoken
) during the bundling process in different environments.tsconfig in the project (if it makes sense)
Questions:
tiktoken_bg.wasm
) during the bundling process in containerized environments?Id be happy to provide any additional info about the bug if needed.