muqeet-khan / BlazorComponents

Simple reusable Blazor component library
50 stars 10 forks source link

Namespace not recognised #2

Closed simonziegler closed 6 years ago

simonziegler commented 6 years ago

Hi Muqeet,

First thanks for working on this stuff. I have just performed a Nuget install on the Client part of a Client/Server Blazor test project. I then add one of your test components (RadarChart), and find that the various datatypes are not recognised. I attach a picture below. Do you have any idea what might be up here?

Many thanks, Simon capture

simonziegler commented 6 years ago

I have sorted this out myself. I also need @using BlazorComponents.ChartJS. The issue now is that 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" />

muqeet-khan commented 6 years ago

Awesome! Thank you for trying this out. Glad you found the solution.

Can you give me steps to reproduce the second issue? I tried and can't reproduce it on my end. You shouldn't be getting this error.

I am closing this as the main issue is resolved. Feel free to respond here for the second issue or open up a new one so that we may track it better.

McHeff commented 5 years ago

can you re-open this please