-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Updating to v6.0.0 causes Webpack to go into a loop when watching for changes #527
Comments
Please use |
Many thanks for your swift response :) |
Not sure if this is helpful or distracting, but in my build (just ran into this problem about 20 minutes ago on Webpack 5.4, Yarn 2.3.3, Fork-TS 6.0.0) the recompilations are actually happening because of Yarn's virtual packages... Very strange, as I thought only my
Edit: Should also mention, my tsconfig is pointed at src only, and I've tried ignoring this directory in eslint, webpack, tsconfig - with no luck. I'm not entirely sure how to get fork-ts watcher to ignore files. I should also mention that when I disable the fork-ts plugin, webpack doesn't re-compile loop. There is some strange interop happening. |
Thanks @rmuchall for the reproduction repository - I found the bug :) |
This is on MacOS 10.15.7 |
🎉 This issue has been resolved in version 6.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
FYI, I had the same issue, but I don't have any And with using the |
@sureshjoshi Could you provide a reproduction repository? |
@piotr-oles I'll try to create one, my project I'm using is private at the moment. |
@piotr-oles Okay, here it is... I tried to strip almost everything out that I could. I left in only what I thought is the minimal configuration to keep the repo as "real-world" as possible. https://github.com/sureshjoshi/fork-ts-checker-reload-bug Please note, I use yarn 2.3.3 - I just tried |
🎉 This issue has been resolved in version 6.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Confirmed 6.0.2 fixes the recursive build problem on my example repo and in my private repo. Thanks! |
Current behavior
After updating to v6.0.0 of fork-ts-checker-webpack-plugin Webpack goes into an infinite loop where it rebuilds over and over.
This is while using webpack-dev-server to monitor for file changes.
Expected behavior
Webpack should build once only.
Steps to reproduce the issue
Apologies I am unable to provide a minimal repository for this issue. I am happy to try to provide any log/output/debugging information that may help trace the issue.
Environment
6.0.0
]4.0.5
]7.13.0
]5.4.0
]Windows 10 (latest)
]Further info
Attempting to use the following plugin to display a list of the modified files that were trigging the build was unfortunately unsuccessful. The plug simply reports an empty array (no modified files).
https://stackoverflow.com/a/64564708
The text was updated successfully, but these errors were encountered: