when i try run or create any rtl or original demo with html template i get this error
npm run build --rtl --demo21
or
npm run build --demo21
> metronic@8.2 build
> webpack
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration[0].entry['js/widgets.bundle'] should be a non-empty array.
-> All modules are loaded upon startup. The last one is exported.
what can i do? for fix this
You don't need to add "apexchart" to the gulp config for your RTL template because it's already included in the Metronic template by default. ApexCharts is a built-in chart library in Metronic, so you can use it without any additional configuration. Simply init the necessary JavaScript and HTML elements in your template to use ApexCharts for your charts and graphs.
Refer to the documentation provided for RTL support. The documentation should contain guidance on how to properly configure and adapt widgets and elements for RTL layouts. Here's the link to the RTL documentation for your reference:
https://preview.keenthemes.com/html/metronic/docs/getting-started/rtl
Thanks
So for example : if i want use apexchart for my RTL template, i should add "apexchart" in skin section of gulf config?!
It appears you're encountering a configuration error related to Webpack when trying to build a Metronic template. This issue is known to occur in Windows environments. To resolve it, you can apply a workaround by updating the `webpack.config.js` file.
Here's what you can do:
1. Visit this link: https://gist.github.com/KeenthemesHub/9bb8c1cb3e111adca7bd6df1b4272e20#file-webpack-config-js-L114-L116
2. In the `webpack.config.js` file, locate lines 114 to 116.
3. Replace these lines with the content provided in the link.
This update should resolve the configuration issue you're facing on Windows. After making the change, try running the build command again:
npm run build --rtl
Ty man this is right answer, also when i use rtl template my widgets works bad , and can not work properly like ltr templates what can i do?!