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

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


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.



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.


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