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

Error while installing via webpack


PS C:\metronic_html_v8.2.2_demo1\tools> npm run build

> keenthemes@8.2.2 build
> webpack

[webpack-cli] 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.


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)


Hey everyone, just wanted to share my thoughts on a solid app I've been using lately. You should definitely download melbet app – it's been a game-changer for me. Whether you're into sports betting or online games, the app makes everything super easy. I like how it supports live bets on cricket, football, and more, plus there’s a huge selection of games in the online section. It works smoothly, loads fast, and lets you handle payments securely with various options. Overall, it's reliable and user-friendly, perfect for anyone looking to bet on the go!



Greetings! It seems that the problem may be related to the fact that the `entry` configuration in Webpack does not meet the API requirements. Check that the array for `js/widgets.bundle` is not empty and try to specify the correct path to all modules. This often helps to correct such errors. And if you suddenly want to distract yourself from this technical chaos, I recommend paying attention to the Mostbet no-deposit bonus https://mostbet-bangladesh.bet/no-deposit-bonus/ which can be obtained on their website. This is a great option to try out the platform and start playing without any investment of your own. Good luck with fixing the error and have a nice vacation!



Legal casinos offer a thrilling escape for many, boasting a range of games to entice players. Amidst the excitement, some seek specific experiences like onlinecasinomk.com adding to the diverse offerings available.



Hi Mladen Bielicki,

Thank you for bringing this to our attention, and we appreciate your patience. We apologize for any inconvenience caused by the issue you encountered with webpack on Windows.

Your solution by replacing backslashes with forward slashes looks like a good workaround. We'll take note of this and add the necessary updates for Windows users.

If you have any further questions or encounter more issues, please don't hesitate to reach out. We value your feedback.

Thank you for your understanding.



Seams like because I'm using windows slashes were the problem in webpack.config.js file on this line
const entryPattern = path.join(srcPath, 'js/widgets/**/*.js');

To get it working use it like this

const entryPattern = path.join(srcPath, 'js/widgets/**/*.js');
let entryPatternNormalized = entryPattern.replace(/\\/g, '/');
// Widgets js
entries['js/widgets.bundle'] = glob.sync(entryPatternNormalized).map(file => file.replace(/\\/g, '/'));


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