We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Javascript is not found in Blazor webassambly.

I'm using Syncfusion Blazor components in Blazor app.
I always got that error whenever I put the JavaScript ref as like "_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js". But it work only in case of putting cdn url like this "https://cdn.syncfusion.com/blazor/20.3.47/syncfusion-blazor.min.js".


Please Help me to resolve this issue.


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team November 2, 2022 07:14 AM UTC

Hi Usman,


We suspect that the reported issue occurs due to the wrong script reference in your index.html file. if you are using Syncfusion.Blazor Single NuGet, then you have to use the below script reference,

 <script src="_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>

if you are using individual NuGet packages like Syncfusion.Blazor.Popups, then you have to use the below script reference,

<script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>

Please refer the below documentation for more details,


Regards,
Vinitha



Loader.
Live Chat Icon For mobile
Up arrow icon