Skip to content

Bun crashes when adding @rocicorp/zero #18868

@johanndev

Description

@johanndev

package.json file

{
  "name": "bun-zero",
  "module": "index.ts",
  "type": "module",
  "private": true,
  "devDependencies": {
    "@types/bun": "latest"
  },
  "peerDependencies": {
    "typescript": "^5"
  }
}

How can we reproduce the crash?

  1. Create an empty project: bun init -y
  2. Try adding @rocicorp/zero package: bun add @rocicorp/zero
  3. 💥

Relevant log output

bun add v1.2.8 (adab0f64)
  🔍 Resolving [1/1] ============================================================
Bun v1.2.8 (adab0f64) Windows x64
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\<user>\AppData\Local\Microsoft\WinGet\Links\bun.exe" "add" "@rocicorp/zero"
Features: text_lockfile
Elapsed: 238ms | User: 15ms | Sys: 31ms
RSS: 84.66MB | Peak: 84.66MB | Commit: 0.15GB | Faults: 20900

panic(thread 27776): Internal assertion failureat install/npm.zig:2412:66
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:

Stack Trace (bun.report)

Bun v1.2.8 (adab0f6) on windows x86_64 [InstallCommand]

panic: Internal assertion failureat install/npm.zig:2412:66

Features: bunfig

Sentry Issue: BUN-7MX

Metadata

Metadata

Assignees

No one assigned

    Labels

    bun installSomething that relates to the npm-compatible clientcrashAn 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