Visual Studio warning about markup element

I am building a Blazor web app using VS2022.  I am using SfChart to plot stock data. For the element that begins with  <SfChart Title="Candle Chart" Width=@Width> VS gives me a warning:

RZ10012 Found markup element with unexpected name 'SfChart'.  If this is intended to be a component, add a @using directive for its namespace.

This occurs for many of the sub-elements, e.g, <ChartArea>, <ChartPrimaryXAxis>, etc.

The app works fine, but I am wondering why I get those warnings.



1 Reply

DG Durga Gopalakrishnan Syncfusion Team September 23, 2024 11:15 AM UTC

Hi Dennis,


Greetings from Syncfusion.


We have ensured your reported scenario by creating a Blazor Web App and rendering the candle chart. We are unable to reproduce the warnings when referring corresponding namespace. For your reference, we have attached the tested sample and a screenshot.


Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorApp21419098050.zip


Please check with the below documentation links.


Getting Started - https://blazor.syncfusion.com/documentation/chart/getting-started-with-web-app

Candle Chart - https://blazor.syncfusion.com/documentation/chart/chart-types/candle


Please attempt to replicate the issue using the provided sample or share your chart configuration or any other customizations made. This will help us further validate the case and provide better assistance. If you have any concerns, feel free to reach out to us.


Regards,

Durga Gopalakrishnan.


Loader.
Up arrow icon