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
Infinite rebuild loop in vagrant environment in watch mode #12340
Comments
Please provide all steps to reproduce, because I can't reproduce |
Hi @alexander-akait, what tipe of information could be utils for you ? can I pass you all the plugins and loader that I use ?
I don't know hot to provide all the steps, is just an issue related with the state of our environment and code :/ |
webpack doesn't remove directories, so something external does this
Yes, as minimal - configuration, as maximum reproducible test repo
What is command you use to run webpack and setup vagrant environment |
in fact I think that the issue is related to that, nobody delete the folder/file, in fact I can navigate inside the
thx, just some time and I prepare all |
@thecreazy feel free to ping me when it was ready |
@alexander-akait sorry for the delay but I was looking for a way to give you a better solution I create a bug example repo https://github.com/thecreazy/webpack-bug-example-repo in this example, (look the readme), the rebuild is done just two time but the bug is the same, in the deletedFiles we found two files that are not deleted by nobody in our real repo the files are a lot and the rebuild process is done more time but the issue is the same let me know if I can help you more thx |
Note that all entries in deletedFiles should be absolute paths, so something is putting relative paths into |
importers probably would need to ability to provide their own |
so do you think is a bug relative to this plugins ? because with Webpack 4 all works good, maybe are not compatible with 5 |
There is a difference how webpack 4 and 5 handle watching of non-existing files. These invalid paths are treated as non-existing (since fs calls fail). |
@thecreazy here bug in |
Bug report
What is the current behavior?
Using Webpack 5.11.1 (update from 4) inside a vagrant machine on macOS i have a loop of rebuild in watch mode,
for example:
npx webpack --devtool eval-source-map --config webpack.client.js --watch
compiler.removedFiles
variables found the/src/common/js/modules
path that is not really deleted from fsIf the current behavior is a bug, please provide the steps to reproduce.
this is our configuration:
the deleted and changed file list is printed by an our Webpack plugin
and this is a example prompt
In the first case the rebuild is correct because the edit of the
/var/www/hs-goldenrod/wls/PROJECTNAME/src/common/js/server.js
file was made by mebut in the second case the rebuild is wrong because nobody delete the folder
/var/www/hs-goldenrod/wls/PROJECTNAME/src/common/js/modules
and in the fs the folder is present and not touchedIn fact the
wrong rebuild
is not just one but go in a infinite loop that have always the/var/www/hs-goldenrod/wls/PROJECTNAME/src/common/js/modules
path inside thedeletedFiles
What is the expected behavior?
just rebuild if a file is changed and not if a folder that is not deletes is in deleted list
Other relevant information:
webpack version: 5.11.1
Node.js version: v12.13.1
Operating System: vagrant machine with Debian
The text was updated successfully, but these errors were encountered: