Skip to content

[Bug]: 1.3.0 panic, No unique code generation entry for unspecified runtime #9837

@bostondv

Description

@bostondv

System Info

System:
OS: Linux 6.8 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (8) x64 Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
Memory: 32.64 GB / 62.10 GB
Container: Yes
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
Yarn: 1.22.4 - ~/carrot/customers/store/node_modules/.bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
Watchman: 2025.02.10.00 - /home/bento/.local/share/devbox/global/default/.devbox/nix/profile/default/bin/watchman
npmPackages:
@rspack-canary/core: 1.3.1-canary-e7b7cad7-20250328135852
@rspack/cli: ^1.3.0 => 1.3.0
@rspack/plugin-react-refresh: ^1.0.1 => 1.0.1

Details

Trying to upgrade our project from 1.2.8 to 1.3.0 we get this panic

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message:  No unique code generation entry for unspecified runtime for /home/bento/carrot/customers/store/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[1].use[0]!/home/bento/carrot/customers/store/client/disorganized/store_app/components/module_renderer/FinishMyCartModalV4/components/FinishMyCartEmptyState/index.ts 
Location: crates/rspack_core/src/artifacts/code_generation_results.rs:252

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━
━━
━━━━━━━━━━━━━━━━━━━━
━━━━
━━━━━━━━━━━━━━━━━━━━
━
━━
<empty backtrace>
Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message:  No unique code generation entry for unspecified runtime for /home/bento/carrot/customers/store/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[1].use[0]!/home/bento/carrot/customers/store/app/assets/javascripts/shared/datadogRUM.ts 
Location: crates/rspack_core/src/artifacts/code_generation_results.rs:

Have tried some things mentioned in other recent issues with no success:

  • Test canary npm:@rspack-canary/core@1.3.1-canary-e7b7cad7-20250328135852
  • Set experiements.parallelCodeSplitting = false
  • Set optimization.splitChunks = false

It seems like the error is coming from babel-loader rule set? We've not migrated to swc yet.

Reproduce link

No response

Reproduce Steps

Have not been able to create a simple repro case yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions