Chartjs-Why is there an error in ChartJs.Blazor (change in ASPNETCORE_ENVIRONMENT)

0👍

Are you sure you didn’t add it inside an <environment> HTML tag? Example:

<environment exclude="Production">
   <script src="_content/ChartJs.Blazor/ChartJsBlazorInterop.js" type="text/javascript" language="javascript"></script>
</environment>

Reference: https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/environment-tag-helper?view=aspnetcore-5.0

Leave a comment