Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Blazor WASM: KTThemeMode is not defined


I'm trying to use Metronic demo 1 with Blazor WebAssembly. I've followed the [Quick Start guide](https://preview.keenthemes.com/blazor/metronic/docs/getting-started.html) and made changes for WebAssembly where applicable.

The demo is working correctly with two exceptions:


  • graphs are not displayed</
    li>
  • all interactivity is lacking



The console shows the following error (one time for each widget-xx.js script):
Uncaught ReferenceError: KTThemeMode is not defined


I assume that the issue is that WebPack is not bundling theme-mode.js to the scripts.bundle.js. What's the proper way to fix this?
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)


Hi Peter,

Thank you for your feedback.

We have an issue right now with webpack build, it will be fixed in the next release, can you try to build assets with gulp?

Check out our gulp doc for more info: https://preview.keenthemes.com/metronic8/demo1/documentation/getting-started/build/webpack.html

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Thanks Lauris. When can I expect the next release?

Peter



Hi Peter,

We usually do confirm an exact release date, we will do our best to release this fix during the next week.

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