-
Notifications
You must be signed in to change notification settings - Fork 516
HMR middleware does not recognize file changes if the path includes brackets #767
Comments
Thanks very much for reporting this, and for the clear repro steps! I was able to reproduce the issue. However, it's not specific to ASP.NET Core. I was also able to repro the same issue using this standalone react boilerplate (when it's cloned into a dir without brackets, it works, when the dirname has brackets it doesn't). So, if you want to get this fixed, you might need to work out whether the issue is inside Webpack or something React-specific (e.g., Hope that's OK. I know it would be easier if we were able to track down and solve all the issues in this repo, but since we're taking dependencies on so many OSS components, we don't have the capacity to track down and fix issues in all of them. Sorry for the inconvenience! |
Thanks Steve, understood - I think having the issue here is already beneficial for people troubleshooting and searching. I'll try to get around finding out which specific component is at fault. |
Quick update for those coming across this: Until a new version of chokidar is released you can either use "npm shrinkwrap" functionality to manually direct choikdar to use 3.0 (this approach failed due to some errors in @types directory - a bug for another day). My approach that worked was:
See also: |
That's really impressive debugging! Thanks for letting us know the outcome. I guess the problem will go away on its own eventually :) |
Title
HMR middleware does not recognize file changes if the path includes brackets
Functional impact
Changes to files do not trigger a webpack recompile and consequently no changes are propagated to browser.
Minimal repro steps
Create a directory with brackets e.g. ("c:\temp\test\With (Brackets)") and run "yo aspnetcore-spa" with React/Redux and CSPROJ setting. Load project in Visual Studio, run it, change Home.tsx and the change will not propagate to the browser. This is despite the browser showing [HMR] connected.
Change the directory name to "NoBrackets" and the identical project will work flawlessly.
Expected result
Changes should be propagated to the browser regardless of brackest.
Actual result
The browser is not refreshing the view and showing the old version.
Further technical details
Unfortunately if you link a business Dropbox to your personal Dropbox it changes the personal Dropbox path to "Dropbox (Private)" which is where this issue popped up for me.
The text was updated successfully, but these errors were encountered: