The New Way to Build! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Learn More

Metronic 8 - Demo 6 HTML integration with Laravel 8 Error


I need help resolving errors which appear when I integrate Metronic 8 - Demo 6 HTML into Laravel 8. I have tried using the assets function to load css/js resources which loads them successfully but the errors persist.

These are the Errors
> UnCaught TypeError: Cannot read properties of undefined (reading 'data')
at new KTDdrawer ( scripts.bundle.js:1)
at Function.KTDrawer.creatInstances ( scripts.bundle.js:1)
at Function.KTDrawer.init ( scripts.bundle.js:1)

> UnCaught TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded')
at widegts.bundle.js:1
> UnCaught TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded')
at widegts.js:1
> UnCaught TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded')
at chat.js:1
> UnCaught TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded')
at upgrade.plan.js:1
> UnCaught TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded')
at create.campaign.js:1
> UnCaught TypeError: Cannot read properties of undefined (reading 'onDOMContentLoaded')
at users-search.js:1


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 Joshua,

The name seems wrong for "KTDdrawer". It should be "KTDrawer".

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