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