Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


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

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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(