Error install webpack metronic
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
> email@example.com build
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.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?
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
This folder has content yes.
if I delete the demo1 that comes in the download, it doesn't generate any of the files.
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:
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.