Improper Component Rendering

Posted 336 days ago by MarkDavich
Edited 336 days ago
0

Blazor is rendering the literal Component Tag in the HTML.

Here is an example (Copied directly from the Chrome dev tools elements tab):

<div b-ie2bbtmxai="">
	<existingimprovementitem
		lease="ViewModel.Lease"
		bus="ViewModel.ExistingImprovementBus"
		existingimprovement="IDL.Models.Leases.ExistingImprovement" 
		operation="ViewModel.ExistingImprovementListRef!.Operation" 
		isediting="ViewModel.ExistingImprovementListRef!.IsEditing" 
		b-csxw6pyto9=""
	></existingimprovementitem>
</div>

To be clear, we have a component named ExistingImprovement. The markup above came from the Chrome dev tools elements tab, not the page.

Note the component does not render on the page due to fact that <existingimprovementitem> is not a valid HTML tag.

To make things more confusing this is only happening on 1 of 3 development machines.

When the computer with this issue publishes to IIS we lose the component on the website.

We are developing on Visual Studio 2022 Enterprise

  • 0

    It turns out it was a Visual Studio update that caused this issue to start happening.

    Cause

    Updating Microsoft Visual Studio Enterprise 2022 (64-bit) from version 17.5.3 to 17.6.2

    To Fix the Issue

    Use Visual Studio Installer to "Rollback" to a previous version, in this case I needed to roll back to 17.5.3

    Posted 335 days ago by MarkDavich Edited 333 days ago
Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 0
An error has occurred. This application may no longer respond until reloaded. Reload 🗙