Collocation JavaScript file breaks Hot Reload #57599
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-hot-reload
This issue is related to the Hot Reload feaature
Milestone
Is there an existing issue for this?
Describe the bug
The mere presence of a collocated Javascript file, e.g. "Home.razor.js" breaks Hot Reload functionality for .css files. However C# Hot Reload is not affected.
Expected Behavior
CSS Hot Reload should work.
Steps To Reproduce
Click to expand. It was created with the following settings:
Exceptions (if any)
18:19 18.29 HotReloadDestroyer: Scoped CSS file changed: Z:\Dotnet\HotReloadDestroyer\Components\Pages\Home.razor.css
18:19 18.35 HotReloadDestroyer: Building scoped CSS files in project HotReloadDestroyer
18:19 18.59 HotReloadDestroyer: [Error] Building scoped CSS files failed for project HotReloadDestroyer
18:19 18.59 Invalid changes were found. Please refer to the Error List window to fix those issues.
18:19 27.95 HotReloadDestroyer (Web server): Hot reload session complete
.NET Version
9.0.100-preview.7.24407.12
Anything else?
I've encountered this problem in both .NET 8 and .NET 9.
The text was updated successfully, but these errors were encountered: