Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

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)


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


If you're facing challenges with a Blazor project or looking for second-chance housing and jobs, finding the right support can make all the difference. Whether it's fixing code errors or securing felon-friendly opportunities, the right resources can help you move forward.



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


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(