Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Blazor Signin error

I running "dotnet watch" after follow the instructions on this link "https://preview.keenthemes.com/blazor/metronic/docs/getting-started" without any modifications. When I open the "/signin" route, the page loads but I receive this error on console:

warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100] Unhandled exception rendering component: Could not find 'KTSigninGeneral.init' ('KTSigninGeneral' was undefined). Error: Could not find 'KTSigninGeneral.init' ('KTSigninGeneral' was undefined). at http://localhost:5170/_framework/blazor.server.js:1:497 at Array.forEach () at i.findFunction (http://localhost:5170/_framework/blazor.server.js:1:465) at E (http://localhost:5170/_framework/blazor.server.js:1:2606) at http://localhost:5170/_framework/blazor.server.js:1:3494 at new Promise () at kt.beginInvokeJSFromDotNet (http://localhost:5170/_framework/blazor.server.js:1:3475) at http://localhost:5170/_framework/blazor.server.js:1:72077 at Array.forEach () at kt._invokeClientMethod (http://localhost:5170/_framework/blazor.server.js:1:72063) Microsoft.JSInterop.JSException: Could not find 'KTSigninGeneral.init' ('KTSigninGeneral' was undefined). Error: Could not find 'KTSigninGeneral.init' ('KTSigninGeneral' was undefined). at http://localhost:5170/_framework/blazor.server.js:1:497 at Array.forEach () at i.findFunction (http://localhost:5170/_framework/blazor.server.js:1:465) at E (http://localhost:5170/_framework/blazor.server.js:1:2606) at http://localhost:5170/_framework/blazor.server.js:1:3494 at new Promise () at kt.beginInvokeJSFromDotNet (http://localhost:5170/_framework/blazor.server.js:1:3475) at http://localhost:5170/_framework/blazor.server.js:1:72077 at Array.forEach () at kt._invokeClientMethod (http://localhost:5170/_framework/blazor.server.js:1:72063) 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.Pages.Auth.SignIn.OnAfterRenderAsync(Boolean firstRender) in E:\User\Desktop\Metronic-8.1.5\asp.net-core\demo1\blazor_demo1\Starterkit\Pages\Auth\SignIn.razor:line 110 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111] Unhandled exception in circuit 'kHjDhF2BWJAYvkYZrGYnXbr4RIc1NAlFYYb3mCraV1A'. Microsoft.JSInterop.JSException: Could not find 'KTSigninGeneral.init' ('KTSigninGeneral' was undefined). Error: Could not find 'KTSigninGeneral.init' ('KTSigninGeneral' was undefined). at http://localhost:5170/_framework/blazor.server.js:1:497 at Array.forEach () at i.findFunction (http://localhost:5170/_framework/blazor.server.js:1:465) at E (http://localhost:5170/_framework/blazor.server.js:1:2606) at http://localhost:5170/_framework/blazor.server.js:1:3494 at new Promise () at kt.beginInvokeJSFromDotNet (http://localhost:5170/_framework/blazor.server.js:1:3475) at http://localhost:5170/_framework/blazor.server.js:1:72077 at Array.forEach () at kt._invokeClientMethod (http://localhost:5170/_framework/blazor.server.js:1:72063) 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.Pages.Auth.SignIn.OnAfterRenderAsync(Boolean firstRender) in E:\User\Desktop\Metronic-8.1.5\asp.net-core\demo1\blazor_demo1\Starterkit\Pages\Auth\SignIn.razor:line 110 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

This prevents the form to validate the fields.

Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi Eduardo,

Did you build assets our theme assets?

Make sure that you have Starterkit/wwwroot/assets folder.
For more info check "Build Assets" section in our doc: https://preview.keenthemes.com/blazor/metronic/docs/getting-started#build-assets

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(