Skip to content

Bun crashes when using production flag #18576

@jewlexx

Description

@jewlexx

EDIT: Updated to reflect crash occurring when only using production flag.

How can we reproduce the crash?

Running bun build index.ts --production causes the crash.

Note that I cannot replicate the error on CodeSandbox. It only seems to occur using the latest versions of bun (at least v1.2.5), on Windows.

Relevant log output

 bun build index.ts --production
============================================================
Bun v1.2.7 (5c0fa6dc) Windows x64
Windows v.win11_ge
CPU: sse42 avx avx2 avx512
Args: "C:\Users\julie\.bun\bin\bun.exe" "build" "index.ts" "--production"
Features: tsconfig
Elapsed: 3ms | User: 0ms | Sys: 0ms
RSS: 30.69MB | Peak: 30.69MB | Commit: 67.90MB | Faults: 7665

panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 <link used to create this bug report>

Stack Trace (bun.report)

Bun v1.2.7 (5c0fa6d) on windows x86_64 [BuildCommand]

panic: Internal assertion failure

Features: tsconfig

Metadata

Metadata

Assignees

Labels

bundlerSomething to do with the bundlercrashAn issue that could cause a crashwindowsAn issue that is known to occur on Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions