Skip to content

[Bug]: Panic occurred at runtime when using persistent cache #9025

@xierenyuan

Description

@xierenyuan

System Info

System:
OS: macOS 13.4
CPU: (12) arm64 Apple M2 Pro
Memory: 113.63 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.18.0/bin/npm
pnpm: 8.7.1 - /opt/homebrew/bin/pnpm
bun: 1.0.25 - ~/.bun/bin/bun
Watchman: 2023.08.28.00 - /opt/homebrew/bin/watchman
Browsers:
Safari: 16.5
@rspack/core: 1.2.0-beta.0

Details

Image Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues Message: should have module graph module Location: crates/rspack_core/src/compiler/make/cutout/fix_issuers.rs:20

Reproduce link

No response

Reproduce Steps

internal projects not reproducible (内部工具无法提供最小复现)
do

    1. Enabling Physical Cache (开启物理缓存)
  cache: {
    type: 'persistent',
    storage: {
      type: 'filesystem',
      directory: 'node_modules/.cache/bundler-rspack/kmi-development'
    },
    version: 'a73c9c33f725f112f89f90ab47e67acf',
    buildDependencies: [
      '/with-rspack/package.json',
      'with-rspack/kmi.config.ts'
    
    1. First startup successfully generates cache (第一次启动正常成功生成 cache )
    1. After changing configuration and restarting, adding new swc wasm plugin (更改配置重启 增加新的 swc wasm 插件)
    1. An error occurred (出现错误)

Disabling physical cache works fine

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions