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.
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