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

Error install webpack metronic


Good Morning!

I bought the metronic product and went to update it to version 8.0.37 when running npm run build --demo1 in the terminal, as per the instructions I already removed the "type": "module", but it's giving this error:

D:\metronic_v8.0.37\html\theme\tools>npm run build --demo1

> metronic@8.0.37 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.

how do i solve this problem?


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 (13)


I'm having the same issue. I'm using the `metronic_rails_v8.1.8_demo1` starter kit and when I run `npm run build --demo1` I get the error:

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



use node js v14 and npm v6



I have the same problem but demo 37 version 8.2.0



I am also running into this issue. Any updates? Just purcahsed the theme.



I also got same error.
"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."

I bought the metro Themeforest and I also build with demo1. Why this error happened?



I'm having the same issue :/



Try to execute build with exactly provided --demo option, it missing in docs but fixed for me the same problem, e.g. npm run build --demo1



Hi,

I assume you use a zip file downloaded from the Themeforest. In the Themeforest zip file, we only include demo1 only for all frameworks. For other demos, you have to download them separately. Envato has some limits on the uploaded zip file. We have to do this to expand more demos.

Please check this link, and download demo2 or other demos by providing your purchase code.

https://devs.keenthemes.com/metronic

Thanks



Good morning, Faizal!

When I run the command npm run build --demo1 with the folder and files that were downloaded demo1 from the themeforest platform it runs perfectly but when I run the command npm run build --demo2 to npm run build --demo21 it doesn't run .

From what I realized he is looking for information in the source folder, as in the download only demo1 came, the others are not generating.

I performed all the procedures you instructed me above, but the error for demo2 to demo21 remains the same.

Follow the image below showing the error:

<img src="https://i.pinimg.com/originals/56/e2/14/56e21481ce87b5df2c14c95e3bcb3a53.jpg" /><img src="" />



Hi Jefferson,

We have tested it, it should be working.

<img src="https://i.ibb.co/cQW780f/image.png" alt="image" border="0">

Please try to remove the node_modules folder, remove the yarn.lock file. Then please retry.

Thanks



Faizal!

if I delete the demo1 that comes in the download, it doesn't generate any of the files.

Thanks.



hello Faizal!

This folder has content yes.

Thanks



Hi Jefferson,

Are you working on the fresh installation setup? Could you please verify if this folder has content? /metronic_v8.0.37/html/demo1/src/js/widgets

Thanks


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