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

Metronic 9 React Setup error when building


the error come from metronic folder
```src/metronic/vendors/@form-validation/cjs/plugin-mui/index.js:1:1 - error TS9005: Declaration emit for this file requires using private name 'Mui'. An explicit type annotation may unblock declaration emit.```

every single file from metronic folder error like this


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,

May I know which Metronic version and framework are you using ?

Metronic v9 Tailwind HTML or Metronic v9 Tailwind React ?

Regards,
Sean



Metronic 9.1.2 (latest) and react framework

im using step where i need download from github repository first and adding folder from metronic-tailwind-html



Hi,

For React please use the official React version of Metronic 9 Tailwind.

For react you can use the most advanced form validation tool:
https://www.react-hook-form.com/

Please do not mix the features of the HTML version with those of the React version. We have especially released the complete react version for Metronic 9 Tailwind which is available in the recent v9.1.2 update, under the Vite folder.

Regards,
Sean



in the docs stated

Copy the src folder from the metronic-tailwind-html package and paste it into the React src directory.

so im wrong following that step??



Hi,

This is an older solution before we release the new Metronic 9 Tailwind React with complete generic react components.

Please download the latest Metronic v9.1.2 from themeforest and just use the vite/typescript or vite/javascript version of the Metronic 9 React. To get started please refer to it's readme.md file.

Regards,
Sean


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