I got the same error that a component would not render in web. For me the problem was that I had renamed the component or copy pasted it from somewhere. I think this is due to the blazor project not having a correct reference to the component.
Just moving the file to another folder and back to the original folder fixed the issues for me.
Copy pasting the code to another file also works, however this is more work.