Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Error after changing Namespace | Metronic 8 Blazor


Good Day everybody,

I am currently using Metronic 8 for Blazor. I started with the "Starterkit" and after some research I changed the "Startkit" Namespace to "MyProject" with a Global Search and replace.

When I try to start up the project now, I get some weird errors. Anybody able to help me out?

This is the error message:

Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'IThCtsT4qnLGYm4KFR1WOP_mHZQnUFtKgoqiufnT8oM'.
Microsoft.JSInterop.JSException: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined).
Error: Could not find 'KTCardsWidget17.init' ('KTCardsWidget17' was undefined).


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 (3)


i also having same error and i did'ny change the namespace or any kind of changing in the code and facing exactly same error



Oh and BTW. Yes I did build the Assets Folder. It's located under wwwRoot. Everything worked perfectly fine before changing Namespace.

Thanks



Hi,

Sorry for the delay in reply.

This issue doesn't seem to be related to the project namespace. Unfortunately, we were not able to reproduce this error, if besides global replacement you have renamed the folder name and .csproj file, then everything should work fine.

Could you please specify which building tools are you using?
Gulp/Webpack

Also, if you have modified anything else in our code please describe those changes.

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  :(