Repository navigation
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/bun
SDK Version
10.55.0
Framework Version
Bun 1.3.14
Link to Sentry event
No response
Reproduction Example/SDK Setup
main.ts
import * as Sentry from "@sentry/bun";
Sentry.init({
dsn: "https://[email protected]/1",
tracesSampleRate: 0,
});
console.log("Success!");Steps to Reproduce
Steps to Reproduce Failure:
Fails with v10.54.0 and v10.55.0
bun i @sentry/[email protected]
bun build main.ts --compile --format=esm --bytecode --outfile main
./main
This build fine with previous versions:
bun i @sentry/[email protected]
bun build main.ts --compile --format=esm --bytecode --outfile main
./main
This also builds fine without --bytecode:
bun i @sentry/[email protected]
bun build main.ts --compile --format=esm --outfile main
./main
Expected Result
Success!
Actual Result
17582 | name;
17583 | supportedVersions;
17584 | patch;
17585 | unpatch;
17586 | constructor(name, supportedVersions, patch, unpatch) {
17587 | this.name = normalize4(name);
^
ReferenceError: normalize4 is not defined
at new InstrumentationNodeModuleFile (/$bunfs/root/main:17587:27)
at _addPatchingExecute (/$bunfs/root/main:24491:45)
at init (/$bunfs/root/main:24485:47)
at new InstrumentationBase (/$bunfs/root/main:17340:28)
at new GraphQLInstrumentation (/$bunfs/root/main:24478:10)
at /$bunfs/root/main:20532:53
at setupOnce (/$bunfs/root/main:24755:24)
at setupIntegration (/$bunfs/root/main:8502:26)
at /$bunfs/root/main:8483:23
at forEach (native:1:11)
Additional Context
Tested with bun on linux.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Activity
linear-code commentedon May 31, 2026
JS-2648
s1gr1d commentedon Jun 1, 2026
Hello, thanks for the reproduction - that helped a lot!
I added a PR to fix this (#21262), this was possibly introduced in this PR: #21096. I confirmed the fix with your reproduction.
chore(skills): Improve triage-issue skill (fix false-positives, check…
fix(node): Vendor `InstrumentationNodeModuleFile` to fix Bun `--bytec…
github-actions commentedon Jun 2, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #21262, which was included in the 10.56.0 release.