Open QazCetelic opened 10 months ago
@QazCetelic Were you successful in running the demos (https://demos.blazorbootstrap.com/charts/pie-chart) without any hiccups?
The demo displays correctly on demos.blazorbootstrap.com. I'm using the same browser, profile, and extensions for testing locally and viewing the demo.
@QazCetelic Would you be able to share a GitHub repository that reproduces the issue, if possible? I'd be happy to take a look.
I'm unable to share the entire solution because it contains code belonging to the company I'm interning at. I've therefore packaged the project (without related projects included in the solution) into an archive file so you can view everything related to the Blazor project.
@QazCetelic What language are you using on your machine?
The code is written in C#
@QazCetelic I mean the OS language culture.
It's a mix of english, danish, and german
Numbers: english/danish Time: english/german Collate: english/danish Currency: english/european Messages: english/danish Paper: english/danish Name: english/danish Address: english/danish Telephone: english/danish Measurement: english/danish Identification: english/danish
Describe the bug There are several errors:
PieChart.razor
at line 3, column 1: error RZ9985: Multiple components use the tag 'PieChart'. Components: LocalWebInterface.Components.Pages.PieChart, BlazorBootstrap.PieChart, Microsoft.AspNetCore.Components.RefPieChart.razor
at line 3, column 28: error CS0029: Cannot implicitly convert type 'BlazorBootstrap.PieChart' to 'LocalWebInterface.Components.Pages.PieChart'PieChart.razor
at line 35, column 28: error CS1061: 'PieChart' does not contain a definition for 'InitializeAsync' and no accessible extension method 'InitializeAsync' accepting a first argument of type 'PieChart' could be found (are you missing a using directive or an assembly reference?)PieChart.razor
at line 67, column 24: error CS1061: 'PieChart' does not contain a definition for 'UpdateAsync' and no accessible extension method 'UpdateAsync' accepting a first argument of type 'PieChart' could be found (are you missing a using directive or an assembly reference?)PieChart.razor
at line 75, column 36: error CS1501: No overload for method 'AddDatasetAsync' takes 3 argumentsPieChart.razor
at line 93, column 36: error CS1501: No overload for method 'AddDataAsync' takes 3 argumentsTo Reproduce Steps to reproduce the behavior:
Expected behavior The example compiles. I think it might be because of a version
Versions (please complete the following information):
Sample code The only difference to the example is the added
@page "/piechart"
.Piechart.razor
```razor @page "/piechart"App.razor
```razorI've added
builder.Services.AddBlazorBootstrap();
to Program.cs and@using BlazorBootstrap;
to _Imports.razor. The default references have also been removed as specified in https://docs.blazorbootstrap.com/getting-started/blazor-webapp-server-global-net-8.Desktop (please complete the following information):