Anyone been able to get BlazorMonaco and Telerik Blazor to work together? Just adding the javascript files to project prevents app from even loading.
This line is the culprit. App loads without it but obviously Monaco editor will not load without it.
<script src="_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
Telerik Blazor 2.30
BlazorMonaco 2.1.0
.NET 6
Here is just one of the many exceptions:
Thanks
Jim
Message: Unhandled exception rendering component: Could not find 'TelerikBlazor.getLocationHost' ('TelerikBlazor' was undefined).
Error: Could not find 'TelerikBlazor.getLocationHost' ('TelerikBlazor' was undefined).
at http://localhost:5000/_framework/blazor.server.js:1:497
at Array.forEach (<anonymous>)
at i.findFunction (http://localhost:5000/_framework/blazor.server.js:1:465)
at E (http://localhost:5000/_framework/blazor.server.js:1:2606)
at http://localhost:5000/_framework/blazor.server.js:1:3494
at new Promise (<anonymous>)
at Tt.beginInvokeJSFromDotNet (http://localhost:5000/_framework/blazor.server.js:1:3475)
at http://localhost:5000/_framework/blazor.server.js:1:71773
at Array.forEach (<anonymous>)
at Tt._invokeClientMethod (http://localhost:5000/_framework/blazor.server.js:1:71759)
--- Exception ---------------------------------------
Exception: Microsoft.JSInterop.JSException - Could not find 'TelerikBlazor.getLocationHost' ('TelerikBlazor' was undefined).
Error: Could not find 'TelerikBlazor.getLocationHost' ('TelerikBlazor' was undefined).
at http://localhost:5000/_framework/blazor.server.js:1:497
at Array.forEach (<anonymous>)
at i.findFunction (http://localhost:5000/_framework/blazor.server.js:1:465)
at E (http://localhost:5000/_framework/blazor.server.js:1:2606)
at http://localhost:5000/_framework/blazor.server.js:1:3494
at new Promise (<anonymous>)
at Tt.beginInvokeJSFromDotNet (http://localhost:5000/_framework/blazor.server.js:1:3475)
at http://localhost:5000/_framework/blazor.server.js:1:71773
at Array.forEach (<anonymous>)
at Tt._invokeClientMethod (http://localhost:5000/_framework/blazor.server.js:1:71759)
--- Stack Trace --------------------------------------
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Telerik.Blazor.Components.Dialog.DialogBuilder.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
------------------------------------------------------
Try removing the defer attribute from the Telerik script tag. See more on why here.