Blazor 8 - Error: Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.initMediaQuery'

0 Answers 43 Views
General Discussions
George
Top achievements
Rank 1
Iron
Iron
George asked on 12 Apr 2024, 04:29 PM

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!

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
George
Top achievements
Rank 1
Iron
Iron
Share this question
or