The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Error Metronic 9 in laravel


Hello, I need help with a question, I did all the steps to use Metronic in the laravel version, I downloaded the GIT structure, I placed the files as instructed in the documentation, but when I run the project for visualization it gives the following error:

Uncaught ReferenceError: KTDom is not defined at demo1.js:63:1

How can I get around this problem?

I'm using the version of tailwind made available


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

 
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment

Hi

We are working on fixing it. We will fix it as soon as possible.

Thank you



With the removal of the excerpt, the error stopped being highlighted, however, as my friend Jeremy Kloeckl said, the slidebar part does not work correctly, it overlaps the main content and does not work as it should



Hi,

Referring to the sample project from:
https://github.com/keenthemes/metronic-tailwind-html-integration

Can you please try to remove this code from /metronic-tailwind-html-integration/metronic-tailwind-laravel/resources/metronic/app/layouts/demo1.js


KTDom.ready(() => {
KTLayout.init();
});



Yes, I have the same problem. As far as I know, you're supposed to refer to ../metronic/core/index.spa.ts in the app.js file instead of ../metronic/core/index.

However, this results in the error message ReferenceError: Cannot access 'KTDataTable' before initialization.

Additionally, the toggle for the sidebar doesn't work, and the logo and the top margin aren't quite right either.


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  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.