Get 2025 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

react theme setup base configration issue


I have completed all the steps provided in react integration guide
1 Creating Project
2 Integrate Styles

3 Setup Static Files
4 in Integrate Core

a Initialize global typescript components
b Disable Strict Mode


after all these steps when i hit npm run dev i am getting these error in console

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

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


node version i am using v20.5.0

npm verison i am using 9.8.0


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


Hi! A similar problem with Laravel. Downloaded it https://github.com/keenthemes/metronic-tailwind-html-integration/tree/main/metronic-tailwind-laravel I added the files according to the instructions. And I even get an

Uncaught ReferenceError: KTDom is not defined
at app-DqJADRCK.js:16:16314



Hi,

If you haven't managed to get a working application by following our integration guide, refer to the Metronic Tailwind Vue project in our guides repo. Since it is a public repo, it doesn't contain theme assets. Follow the steps below before running the application:

  1. Open the repo at https://github.com/KeenthemesHub/metronic-tailwind-html-integration.
  2. Download the metronic-tailwind-vue folder.
  3. Copy the src folder from the metronic-tailwind-html package and paste it into the metronic-tailwind-vue/src directory.
  4. Rename the copied folder to theme. The directory structure should now look like this: metronic-tailwind-vue/src/theme.
  5. Update src/theme/app/layouts/demo1.js you should replace:

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

    to

    export default KTLayout;

  6. Delete src/theme/core/index.ts and rename src/theme/core/index.spa.ts to index.ts.
  7. Copy the media folder from metronic-tailwind-html/dist/assets and paste it into metronic-tailwind-vue/public.
  8. Install dependencies with npm install and serve the project with npm run dev.



Please let us know if you need any help on this topic or anything else.

Regards,
Lauris Stepanovs,
Keenthemes Support Team

i want video guide


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