Hello,
I have followed the Blazor 8 Getting started instructions but am getting the error Error: Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.initMediaQuery'.
I have double checked that the <script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js"></script> is in the <head> of the app.razor
i have double checked that the builder.Services.AddTelerikBlazor(); is in the program.cs
and I have the
<TelerikRootComponent>
@Body
</TelerikRootComponent>
in the root layout component MainLayout.razor.
This error causes my stylesheets not to load. Occasionally the page will load with the stylesheets, but if a clear the cache or do a CTRL-SHIFT-R, I will get the error and my styles will unload.
HALP!
Error: Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.initMediaQuery' ('TelerikBlazor' was undefined).
I think I have resolved my issue by delaying Blazor.Start() until the telerik-blazor.js file is loaded per the instructions here ->
https://docs.telerik.com/blazor-ui/troubleshooting/js-errors
https://docs.telerik.com/blazor-ui/getting-started/what-you-need#javascript-file