apexcharts / Blazor-ApexCharts

A blazor wrapper for ApexCharts.js
https://apexcharts.github.io/Blazor-ApexCharts
MIT License
788 stars 91 forks source link

Problem with loading script on .NET 8 WASM #366

Closed exzzy22 closed 8 months ago

exzzy22 commented 8 months ago

Hi, I updated my app to .NET 8 and there are problems with loading apex charts js files for example:

The resource from “.../_content/Blazor-ApexCharts/js/blazor-apex-charts.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

The resource from “.../_content/Blazor-ApexCharts/js/apex-charts.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

I didn't change anything code wise except changing .NET version to 8 and updating few packages, on .NET 7 it worked fine. The version I'm using 2.2.1

EDIT: I just saw that I updated this package from 1.3.0 to 2.2.1, anyway after removing both scripts from index file the error dispersed