Yes, it is very sad when you get this error in Blazor. I had a very simple MainLayout.razor page. I mean, really simple:
<div class="content px-4">
@Body
</div>
And yet, my Index.razor file was not being displayed.
Easy fix: I hadn’t put a “page” attribute at the top of the Index page:
@page "/"
@inject CoasterService coasterService
...