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]: Persistent cache save failed after multiple reloads #8916

Open
khangviet1996 opened this issue Jan 2, 2025 · 2 comments
Open

[Bug]: Persistent cache save failed after multiple reloads #8916

khangviet1996 opened this issue Jan 2, 2025 · 2 comments
Assignees

Comments

@khangviet1996
Copy link

khangviet1996 commented Jan 2, 2025

Version

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
    Memory: 3.63 GB / 31.87 GB
  Browsers:
    Chrome: 131.0.6778.205
    Edge: Chromium (131.0.2903.112)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @rsbuild/core: ^1.2.0-alpha.0 => 1.2.0-alpha.0        
    @rsbuild/plugin-react: ^1.0.7 => 1.1.0

Details

I'm trying persistent caching in my project. Sometimes, after multiple reloads, I see a save failure. This also happens when creating a new React project and reloading multiple times.
Image

Reproduce link

pnpm create rsbuild@latest

Reproduce Steps

  1. pnpm create rsbuild@latest
  2. upgrade rsbuild ^1.2.0-alpha.0
  3. Config rsbuild
tools: {
    rspack(config) {
      config.experiments.cache ||= {};
      config.experiments.cache.type = 'persistent';
      config.experiments.cache.buildDependencies = [__filename];

      return config;
    },
  1. try reloads multiple times (click "r" in rsbuild to trigger reload after pnpm run dev)
@chenjiahan chenjiahan transferred this issue from web-infra-dev/rsbuild Jan 2, 2025
@LingyuCoder LingyuCoder self-assigned this Jan 2, 2025
@LingyuCoder
Copy link
Contributor

4. try reloads multiple times

I don't quite understand what operation "reload" refers to. Does it mean modifying the file after running npm run dev? Or does it mean starting and running npm run build multiple times?

@khangviet1996
Copy link
Author

khangviet1996 commented Jan 2, 2025

After pnpm dev and type "r" multiple times in rsbuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants