I have an issue where I use BlazorComponent in a Blazor Client/Server project. I have included BlazorComponent to the Client project with Nuget.
I get a compilation error of Cannot implicitly convert type 'Microsoft.AspNetCore.Blazor.ElementRef' to 'BlazorComponents.Shared.ChartJsLineChart'. This is related to the "ref" portion of <ChartJsLineChart ref="lineChartJs" Chart="@blazorLineChartJS" Width="600" Height="300" />.
The project is a (heavy) modification to the standard Blazor Client/Server option when you create a new project using Asp.Net 2.1.
I have an issue where I use BlazorComponent in a Blazor Client/Server project. I have included BlazorComponent to the Client project with Nuget.
I get a compilation error of
Cannot implicitly convert type 'Microsoft.AspNetCore.Blazor.ElementRef' to 'BlazorComponents.Shared.ChartJsLineChart'
. This is related to the "ref" portion of<ChartJsLineChart ref="lineChartJs" Chart="@blazorLineChartJS" Width="600" Height="300" />
.The project is a (heavy) modification to the standard Blazor Client/Server option when you create a new project using Asp.Net 2.1.
Best regards, Simon