HMR middleware does not recognize file changes if the path includes brackets #930

Closed
opened 2025-08-09 17:18:13 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @aduggleby on 3/16/2017

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.

*Originally created by @aduggleby on 3/16/2017* ### 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#930
No description provided.