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]: Infinite Rebuild Loop with CopyRspackPlugin in Watch Mode when Using "*.txt" Pattern #8163

Open
bankmonitor-mihaly-szalai opened this issue Oct 17, 2024 · 2 comments
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@bankmonitor-mihaly-szalai

System Info

System:

  • OS: macOS 15.0.1
  • CPU: (8) arm64 Apple M1
  • Memory: 101.53 MB / 16.00 GB
  • Shell: 5.9 - /bin/zsh

Binaries:

  • Node: 22.9.0 - /opt/homebrew/bin/node
  • Yarn: 1.22.19 - /opt/homebrew/bin/yarn
  • npm: 10.8.3 - /opt/homebrew/bin/npm
  • pnpm: 9.12.2 - /opt/homebrew/bin/pnpm

Browsers:

  • Chrome: 129.0.6668.101
  • Safari: 18.0.1

npmPackages:

  • @rspack/cli: 1.0.13 => 1.0.13
  • @rspack/core: 1.0.13 => 1.0.13

Details

I'm experiencing an issue with the CopyRspackPlugin in rspack when using a pattern like "*.txt". When running the compiler in watch mode and making changes to a .ts or .js file, the compiler enters an infinite loop, continuously creating new builds without stopping.

I attempted to reproduce the issue in a GitHub Codespace, but the problem did not occur there. However, on my Mac, the issue consistently manifests. I've created a sample repository that demonstrates this behavior.

Reproduce link

https://github.com/bankmonitor-mihaly-szalai/rspack-repro

Reproduce Steps

  1. Run npm run dev
  2. Make a change in src/index.jsfile
  3. Observe the compiler's behavior.
@bankmonitor-mihaly-szalai bankmonitor-mihaly-szalai added bug Something isn't working pending triage The issue/PR is currently untouched. labels Oct 17, 2024
@inottn
Copy link
Contributor

inottn commented Oct 20, 2024

Is it similar to this issue?

@bankmonitor-mihaly-szalai
Copy link
Author

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

2 participants