Blazor: Error on adding new scoped CSS since last update #55998
Labels
area-blazor
Includes: Blazor, Razor Components
Author: Migration Bot 🤖
The issue was created by a issue mover bot. The author may not be the actual author.
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Status: No Recent Activity
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version] [regression] [worked-in:Just before 2022 (64-bit) V 17.10.1]
Steps to Reproduce:
Expected Result:
The project should compile successfully without any errors, recognizing 'IEButton.razor.css' as a scoped CSS file for the 'IEButton.razor' component.
Actual Result:
The following build error is encountered:
Error (active) BLAZOR102 The scoped css file 'ImportExport\IEButton.razor.css' was defined but no associated razor component or view was found for it.
Despite the existence of the associated Razor component, the compiler fails to recognize it and throws an error indicating no associated Razor component or view was found for the scoped CSS file.
Note that previously scoped CSS files remain completely functional. The compiler error only points to a newly added scoped CSS file.
I saw this behavior starting yesterday when I last updated Visual Studio Community.
Original Comments
(no comments)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: