You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Index.razor(3,1): warning RZ10012: Found markup element with unexpected name 'Bug'. If this is intended to be a component, add a @using directive for its namespace. [blazorbug.csproj]
Removing @inherits from Bug.razor fixes the issue.
Perhaps I'm using @inherit wrong, but there should be an error stating such. It's not clear why Bug is not recognized as a component.
The text was updated successfully, but these errors were encountered:
Minimal Repro here:
https://github.com/TrieBr/blazorbug
I'm using dotnet
7.0.302
.When I add
@inherits
to a blazor component, that component no longer becomes recognized as a valid component.Index.razor
InheritMe.razor
Bug.razor
NotBug.razor
dotnet build
:Removing
@inherits
from Bug.razor fixes the issue.Perhaps I'm using @inherit wrong, but there should be an error stating such. It's not clear why
Bug
is not recognized as a component.The text was updated successfully, but these errors were encountered: