I can only prerender a component razor into a .cshtml page if it is entered in the client.
<component type="typeof(MyApp.Client.Pages.Counter)" render-mode="WebAssemblyPrerendered" />
Why if I move mycomponent.razor to the server I can't use it?
<component type="typeof(MyApp.Server.Pages.Counter)" render-mode="ServerPrerendered" />
Thanks