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

issue when running the rtl script in react


Hi there is an issue in react templates When I run "yarn rtl" script I get the following error I tried all the demos they all have the same issue:


[webpack-cli] Failed to load "D:\templates\metronic_react_v8.2.0_demo8\demo8\rtl.config.js" config
[webpack-cli] Error [ERR_REQUIRE_ESM]: require() of ES Module D:\templates\metronic_react_v8.2.0_demo8\demo8\node_modules\del\index.js from D:\templates\metronic_react_v8.2.0_demo8\demo8\rtl.config.js not supported.
Instead change the require of index.js in D:\templates\metronic_react_v8.2.0_demo8\demo8\rtl.config.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (D:\templates\metronic_react_v8.2.0_demo8\demo8\rtl.config.js:2:13) {
code: "ERR_REQUIRE_ESM"
}
error Command failed with exit code 2.


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


Hi,

Thank you for your feedback.

After rechecking the rtl tutorial, we found a problem with webpack configuration in the latest Metronic React version, we will fix this problem and include a fix in the next release.

For now, you can follow instructions in this devs post for guidance on setting up the React RTL version.

Please let us know if you have any further questions on this topic or anything else.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


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