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

KTUtil.onDOMContentLoaded' is undefined


Hello, can you help me to resolve this issue please

[Error] TypeError: KTUtil.onDOMContentLoaded is not a function. (In 'KTUtil.onDOMContentLoaded(function () {
KTAppSidebar.init();
})', 'KTUtil.onDOMContentLoaded' is undefined)
Eval Code (sidebar.js:114)
eval
../demo1/src/js/layout/sidebar.js (scripts.bundle.js:249)
__webpack_require__ (scripts.bundle.js:306)
Eval Code (scripts.demo1.js:23)
eval
./webpack/scripts.demo1.js (scripts.bundle.js:18)
__webpack_require__ (scripts.bundle.js:306)
(anonymous function) (scripts.bundle.js:329)
Global Code (scripts.bundle.js:331)


I've used webpack and build successfully but I always see this error.



Thanks


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)


Hi,

Can you please send us a test link to your page?

Also, pleas make sure that the core JS bundle is loaded and that you include your custom js file after the core bundle in the HTML's bottom part.

Please refer to the original template HTML structure and make sure the JS includes the order followed.

If you need any further help please provide us your Metronic version as well.

Regards.



I recently stumbled upon rewier best speech writers. The author offers valuable insights into various speech writing services, highlighting their strengths and suitability for students. They discuss factors such as affordability, quality, and customer support, making it easier for readers to make informed decisions. Additionally, the review emphasizes the importance of finding a service that aligns with individual needs and preferences. Overall, it's a helpful resource for students seeking professional speech writing assistance, offering a comprehensive overview of top-rated services in the field.


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