Source scripts for charts are not loaded

Hello,

after some time I managed to update my application to newest version 18.4.0.33 also changing from reference Syncfusion.Blazor to Syncfusion.Blazor.Charts and Syncfusion.Blazor.Grid which are only two packages that I currently need.

Everything works fine except the source scripts for charts have trouble loading for example:

1. I navigate to location where both Chart and Grid components are included, error is thrown:
     Microsoft.JSInterop.JSException: Could not find 'Chart' in 'window.sfBlazor'.
     Error: Could not find 'Chart' in 'window.sfBlazor'.
     and _content folder contains only Blazor.Core/scripts and Blazor.Spinner/scripts

2. I navigate to location where only Grid component is included, content of Blazor.Grid/scripts is loaded
     then if I navigate to same location from point 1. location with Chart and Grid component Blazor.Charts/scripts are loaded and charts work, however if I refresh page,      error is thrown again and scripts are not loaded

I followed notes in last updates using Individual nuget packages (2 stated before) 
services.AddSyncfusionBlazor(); service register
<link rel='nofollow' href="https://cdn.syncfusion.com/blazor/18.4.31/styles/bootstrap4.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.20/lodash.min.js"></script>
and these two links

Thanks for your answear,

Lukas

3 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team January 12, 2021 03:17 PM UTC

Hi Lukas,

We have ensured your reported scenario with latest Syncfusion.Blazor nugget package version 18.4.0.33 in .NET framework 5.0, we are unable to reproduce an issue from our end. We suggest you 


Please revert us if you have any concerns.

Regards,
Durga G


Marked as answer

LV lukas vojtassak January 13, 2021 09:23 AM UTC

Hi Druga,

Updating application to .NET framework 5.0 solved my issue thank you a lot

Best regards,
Lukas


SM Srihari Muthukaruppan Syncfusion Team January 14, 2021 07:24 AM UTC

Hi Lukas, 
 
Most welcome. Kindly get in touch with us, if you requires further assistance. We are always happy in assisting you.   
   
Thanks,   
Srihari M 


Loader.
Up arrow icon