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>
Source:stackexchange.com