Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

configuration[0].entry['js/widgets.bundle'] should be a non-empty array.


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


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)


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


Please make sure to back up your original `webpack.config.js` file before making any changes, just in case you need to revert to the previous configuration.



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?!



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?!



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.


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