Error with Blazor Project
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100] Unhandled exception rendering component: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined). Error: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined). at https://localhost:7291/_framework/blazor.web.js:1:537 at Array.forEach (<anonymous>) at l.findFunction (https://localhost:7291/_framework/blazor.web.js:1:505) at b (https://localhost:7291/_framework/blazor.web.js:1:5248) at https://localhost:7291/_framework/blazor.web.js:1:3041 at new Promise (<anonymous>) at y.beginInvokeJSFromDotNet (https://localhost:7291/_framework/blazor.web.js:1:3004) at gn._invokeClientMethod (https://localhost:7291/_framework/blazor.web.js:1:62730) at gn._processIncomingData (https://localhost:7291/_framework/blazor.web.js:1:60119) at connection.onreceive (https://localhost:7291/_framework/blazor.web.js:1:53760) Microsoft.JSInterop.JSException: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined). Error: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined). at https://localhost:7291/_framework/blazor.web.js:1:537 at Array.forEach (<anonymous>) at l.findFunction (https://localhost:7291/_framework/blazor.web.js:1:505) at b (https://localhost:7291/_framework/blazor.web.js:1:5248) at https://localhost:7291/_framework/blazor.web.js:1:3041 at new Promise (<anonymous>) at y.beginInvokeJSFromDotNet (https://localhost:7291/_framework/blazor.web.js:1:3004) at gn._invokeClientMethod (https://localhost:7291/_framework/blazor.web.js:1:62730) at gn._processIncomingData (https://localhost:7291/_framework/blazor.web.js:1:60119) at connection.onreceive (https://localhost:7291/_framework/blazor.web.js:1:53760) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) at Starterkit.Components.Partials.Widgets.Cards._CardsWidget17.OnAfterRenderAsync(Boolean firstRender) in C:\Users\arti\Downloads\metronic_blazor_v8.2.9\Starterkit\Components\Partials\Widgets\Cards_CardsWidget17.razor:line 87 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111] Unhandled exception in circuit 'gqx56NzD4zUSx-JJc13B9jesuu3vCM3TdcF95F4zlkQ'. Microsoft.JSInterop.JSException: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined). Error: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined). at https://localhost:7291/_framework/blazor.web.js:1:537 at Array.forEach (<anonymous>) at l.findFunction (https://localhost:7291/_framework/blazor.web.js:1:505) at b (https://localhost:7291/_framework/blazor.web.js:1:5248) at https://localhost:7291/_framework/blazor.web.js:1:3041 at new Promise (<anonymous>) at y.beginInvokeJSFromDotNet (https://localhost:7291/_framework/blazor.web.js:1:3004) at gn._invokeClientMethod (https://localhost:7291/_framework/blazor.web.js:1:62730) at gn._processIncomingData (https://localhost:7291/_framework/blazor.web.js:1:60119) at connection.onreceive (https://localhost:7291/_framework/blazor.web.js:1:53760) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) at Starterkit.Components.Partials.Widgets.Cards._CardsWidget17.OnAfterRenderAsync(Boolean firstRender) in C:\Users\arti\Downloads\metronic_blazor_v8.2.9\Starterkit\Components\Partials\Widgets\Cards_CardsWidget17.razor:line 87 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Replies (1)
Hi,
Thank you for reaching out to us.
Could you please clarify which Metronic version you are using?
Please make sure that you include Starterkit/wwwroot/assets/js/widgets.bundle.js on your page.
Regards,
Lauris Stepanovs,
Keenthemes Support Team