muqeet-khan / BlazorComponents

Simple reusable Blazor component library
50 stars 10 forks source link

Compilation error #3

Closed simonziegler closed 6 years ago

simonziegler commented 6 years ago

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