Skip to content

[Bug]: panic with "should be pending if module is not in the module graph" #12674

@seiyab

Description

@seiyab

System Info

  System:
    OS: macOS 14.6
    CPU: (16) arm64 Apple M3 Max
    Memory: 20.09 GB / 128.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.18.0 - /Users/user/.asdf/installs/nodejs/22.18.0/bin/node
    Yarn: 3.6.3 - /Users/user/.asdf/installs/nodejs/22.18.0/bin/yarn
    npm: 10.9.3 - /Users/user/.asdf/plugins/nodejs/shims/npm
    bun: 1.0.28 - /Users/user/.bun/bin/bun
  Browsers:
    Chrome: 143.0.7499.170
    Firefox: 146.0.1
    Safari: 17.6
  npmPackages:
    @rspack/core: ^1.6.1 => 1.6.3

Details

I report this error as the error message suggests filing an issue. I don't understand the detail.

17:47:08 rsbuild | Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues: panicked at crates/rspack_core/src/compilation/make/graph_updater/repair/add.rs:87:14:
17:47:08 rsbuild | should be pending if module is not in the module graph
17:47:09 rsbuild | Error: write EPIPE
17:47:09 rsbuild |     at target._send (node:internal/child_process:877:20)
17:47:09 rsbuild |     at target.send (node:internal/child_process:751:19)
17:47:09 rsbuild |     at /Users/user/Projects/my-project/node_modules/ts-checker-rspack-plugin/lib/getIssuesWorker.js:28:119
17:47:09 rsbuild |     at new Promise (<anonymous>)
17:47:09 rsbuild |     at sendMessage (/Users/user/Projects/my-project/node_modules/ts-checker-rspack-plugin/lib/getIssuesWorker.js:27:36)
17:47:09 rsbuild |     at process.handleMessage (/Users/user/Projects/my-project/node_modules/ts-checker-rspack-plugin/lib/getIssuesWorker.js:51:28) {
17:47:09 rsbuild |   errno: -32,
17:47:09 rsbuild |   code: 'EPIPE',
17:47:09 rsbuild |   syscall: 'write'
17:47:09 rsbuild | }
17:47:09 rsbuild | Terminating rsbuild

Reproduce link

No response

Reproduce Steps

I don't know how to reproduce it. It happens on:

  1. Running rsbuild dev
  2. Edit TypeScript files in the project

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions