2 people reported
All time, since Sep 26.
Compiled binary keeps build __dirname
“Code that loads siblings via require(path.join(__dirname, "x.cjs")) therefore fails once the binary runs anywhere the build directory doesn't exist.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/bun/issues/4802/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Compiled binary keeps build machine path for __dirname requires. Requires computed from __dirname in CommonJS modules fail once the binary runs where the build directory does not exist.
Is this your bug?
File my report- Where
- bun build --compile
- Error text
error: Cannot find module '<build directory>/node_modules/fakepkg/package.json' from '/$bunfs/root/app'- Versions
- 1.4.2
- Platforms
- macOS
- How bad
- Breaks a normal workflow.