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
Webpack 5 Watch Only Rebuilds Once, Never Again #11883
Comments
For maintainers only:
|
Please create reproducible test repo, all works fine locally |
i have observed something like this a few times. the watch build triggered but the build output said that everything is unchanged/emitted from cache. |
@evilebottnawi - I will try, but it's going to be a while when I can find some time to do so. |
Unfortunately, then we have to close the problem, we cannot fix something somewhere, yes, it is likely that there is a bug somewhere, but without reproduce it will be keeping here forever |
@DaleyKD Can you try webpack/watchpack#179? |
@evilebottnawi - I was just now able to get back around to this. I wasn't sure how to specifically try the PR you linked, but I did update to webpack 5.4 today, and it seems better. I'll close this for now. If I see anything start to happen again, I'll find time to get you a repo. Thanks for your hard work! It's greatly appreciated. |
@DaleyKD Yes, feel free to open new issue(s) if you faced with problems |
Just to add to this issue incase someone comes across this like I did, I upgraded to webpack 5 and had this exact same problem. Before i realized this, I did make a small repo which reproduced it if anyone's interested: |
|
I'd avoid using |
Bug report
What is the current behavior?
When running
webpack --mode development --watch --progress
in Webpack 5, it builds everything fine, then goes into watch mode. Upon the first change of my .tsx, it then successfully rebuilds it again. However, after I change that same .tsx a second time, webpack notices the change, but does not rebuild.PLEASE NOTE: I rolled back to Webpack 4.44.2, and it is working perfectly.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Every time I change my .tsx file, Webpack 5 should detect the change, and initiate the rebuild process.
Other relevant information:
webpack version: 5.3.2
Node.js version: 12.18.4
npm version: 6.14.8
Operating System: Windows 10 Enterprise 20H2
Additional tools:
The text was updated successfully, but these errors were encountered: