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]: The modulesCount cache is writing to disk too much #26928

Open
devnopt opened this issue Apr 23, 2024 · 0 comments
Open

[Bug]: The modulesCount cache is writing to disk too much #26928

devnopt opened this issue Apr 23, 2024 · 0 comments

Comments

@devnopt
Copy link

devnopt commented Apr 23, 2024

Describe the bug

The cache to .cache/storybook/dev-server directory (uses file-system-cache package) is writing to a single file for modulesCount a lot and triggers EPERM error sometimes.

This is using webpack builder, may or may not be an issue with vite builder.

Current workaround is to intercept the require for fs-extra and override with memfs + dummy implementations for other methods.

To Reproduce

It occurs on startup sometimes and depends on the existing load on the file system.

System

System:
  OS: Amazon Linux 2
Binaries:
  Node: 16.20.2
  Yarn: 1.22.11
  npm: 8.19.4
Browsers:
  Chrome: 121
npmPackages:
  @storybook/addon-essentials: 7.6.17
  @storybook/addon-iteractions: 7.6.17
  @storybook/addon-links: 7.6.17
  @storybook/blocks: 7.6.17
  @storybook/react: 7.6.17
  @storybook/react-webpack5: 7.6.17
  @storybook/test: 7.6.17
  eslint-plugin-storybook: 0.8.0
  storybook: 7.6.17

Additional context

No response

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

No branches or pull requests

1 participant