-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange issue on a SimpleBarChartComponent realized in code behind #145
Comments
Ok the problem was that the latest released Nuget package (1.1.0) was not updated, I switched to the prerelease v.2.0.0-preview1 and the errors are gone (now BarDataset accept also non class types). I close the issue. |
I closed the issue too early. With the prerelease package the previous compilation errors are gone, however I have now this error:
The content of tsconfig.json (inside .nuget folder, not a file of my solution)
It seems that VisualStudio is trying to compile TypeScript files, why ? Since there are no typescript files, I am wondering why it returns an error. |
I have also tried to add the package Microsoft.TypeScript.MSBuild as suggested by VisualStudio, however the error remains. |
There is already an issue about my problem, I close again this one and I'll continue there. |
In my Blazor WebAssembly solution I have these 2 files
CameraReliability.razor
CameraReliability.razor.cs
which are extracted (separeted into code behind) from the SimpleBarChartComponent.razor of the examples of your ChartsJs.Blazor library. If I try to compile the code I get these 2 errors:
For the first problem if you check the class BarDataset it requires a class in the generic type (hence double is not possible), however I am wondering why if you use it in a pure razor file it compiles and works fine. For the second problem it's again the same reason.
Can anybody tell me why this happens ?
The text was updated successfully, but these errors were encountered: