Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xierenyuan opened this issue Jan 17, 2025 · 2 comments
Open

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

xierenyuan opened this issue Jan 17, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@xierenyuan
Copy link

xierenyuan commented Jan 17, 2025

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

@xierenyuan xierenyuan added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jan 17, 2025
@chenjiahan chenjiahan removed the pending triage The issue/PR is currently untouched. label Jan 26, 2025
@chenjiahan chenjiahan changed the title [Bug]: Panic occurred at runtime [Bug]: Panic occurred at runtime when using persistent cache Jan 26, 2025
@jerrykingxyz
Copy link
Contributor

@xierenyuan Will any error occur when restart rspack without modify rspack configuration?


如果不修改 rspack 配置,二次启动会出现问题吗?

@phcorp
Copy link

phcorp commented Jan 29, 2025

I encountered the same problem today, I had to remove buildDependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants