This is a migrated thread and some comments may be shown as answers.

2.23 WASM Dialog crash

6 Answers 425 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Rob asked on 30 Mar 2021, 03:51 PM

After installing 2.23 into my Blazor WASM project, there's a js crash with the following stacktrace:

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not find 'TelerikBlazor.getLocationHost' ('getLocationHost' was undefined).
      Error: Could not find 'TelerikBlazor.getLocationHost' ('getLocationHost' was undefined).
          at https://localhost:44320/_framework/blazor.webassembly.js:1:1287
          at Array.forEach (<anonymous>)
          at e.findFunction (https://localhost:44320/_framework/blazor.webassembly.js:1:1247)
          at b (https://localhost:44320/_framework/blazor.webassembly.js:1:2989)
          at https://localhost:44320/_framework/blazor.webassembly.js:1:3935
          at new Promise (<anonymous>)
          at Object.beginInvokeJSFromDotNet (https://localhost:44320/_framework/blazor.webassembly.js:1:3908)
          at Object.w [as invokeJSFromDotNet] (https://localhost:44320/_framework/blazor.webassembly.js:1:64232)
          at _mono_wasm_invoke_js_blazor (https://localhost:44320/_framework/dotnet.5.0.4.js:1:190800)
          at do_icall (<anonymous>:wasm-function[10596]:0x194e4e)
Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.getLocationHost' ('getLocationHost' was undefined).
Error: Could not find 'TelerikBlazor.getLocationHost' ('getLocationHost' was undefined).
    at https://localhost:44320/_framework/blazor.webassembly.js:1:1287
    at Array.forEach (<anonymous>)
    at e.findFunction (https://localhost:44320/_framework/blazor.webassembly.js:1:1247)
    at b (https://localhost:44320/_framework/blazor.webassembly.js:1:2989)
    at https://localhost:44320/_framework/blazor.webassembly.js:1:3935
    at new Promise (<anonymous>)
    at Object.beginInvokeJSFromDotNet (https://localhost:44320/_framework/blazor.webassembly.js:1:3908)
    at Object.w [as invokeJSFromDotNet] (https://localhost:44320/_framework/blazor.webassembly.js:1:64232)
    at _mono_wasm_invoke_js_blazor (https://localhost:44320/_framework/dotnet.5.0.4.js:1:190800)
    at do_icall (<anonymous>:wasm-function[10596]:0x194e4e)
   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15`1[[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Telerik.Blazor.Components.Dialog.DialogBuilder.OnAfterRenderAsync(Boolean firstRender)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

 

6 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 30 Mar 2021, 04:25 PM

Hello Rob,

Could you try the troubleshooting ideas here and let me know if they helped: https://docs.telerik.com/blazor-ui/troubleshooting/js-errors?

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Accepted
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 30 Mar 2021, 04:40 PM

Thanks Marin,

Cleaning the solution solved the issue.

Best,

Rob

0
Marin Bratanov
Telerik team
answered on 30 Mar 2021, 04:43 PM

Happy to see you moving forward, Rob!

--Marin

0
Jeff
Top achievements
Rank 1
answered on 30 Mar 2021, 10:24 PM

Marin, I'm hitting the same crash stack with 2.23. I've cleared the NUGET package cache (and deleted the bin/obj folders). I've cleaned the solution. I even made sure I updated my node_modules to pull down the latest kendo-theme-bootstrap v4.35. Still hitting this on app launch. It's a .net 5 WASM project which was working clean with 2.22.

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not find 'TelerikBlazor.getLocationHost' ('getLocationHost' was undefined).
      Error: Could not find 'TelerikBlazor.getLocationHost' ('getLocationHost' was undefined).
          at https://localhost:5001/_framework/blazor.webassembly.js:1:1287
          at Array.forEach (<anonymous>)
          at e.findFunction (https://localhost:5001/_framework/blazor.webassembly.js:1:1247)
          at b (https://localhost:5001/_framework/blazor.webassembly.js:1:2989)
          at https://localhost:5001/_framework/blazor.webassembly.js:1:3935
          at new Promise (<anonymous>)
          at Object.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.webassembly.js:1:3908)
          at Object.w [as invokeJSFromDotNet] (https://localhost:5001/_framework/blazor.webassembly.js:1:64232)
          at _mono_wasm_invoke_js_blazor (https://localhost:5001/_framework/dotnet.5.0.4.js:1:190800)

0
Accepted
Jeff
Top achievements
Rank 1
answered on 30 Mar 2021, 10:57 PM
Cancel red alert. Lower shields. Clearing the browser cache removed the error. Kruft in the cache. :)
0
Marin Bratanov
Telerik team
answered on 31 Mar 2021, 06:37 AM

It is good to see you have fixed this, Jeff.

--Marin

Tags
General Discussions
Asked by
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Marin Bratanov
Telerik team
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Jeff
Top achievements
Rank 1
Share this question
or