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

running "npm run build --demo1" generates error


Hi team,

I am trying to run npm run build --demo1 from starterkit/_keenthemes/tools
but getting below 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 have deleted node_modules and tried again but the issue still exist. any help would be greatly appreciated


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


use node js v14 and npm v6



Hi Armin,

Thank you for reaching out to us.

Could you please specify which Metronic version are you using?

And which Starterkit?
Asp.Net.Core/Blazor/Django/Spring/Nodejs/Laravel/Symfony/Flask/Rails

We had a problem with Webpack script in Metronic older version, can you try to build assets with gulp task using command gulp --demo1?

Regards,
Lauris Stepanovs,
Keenthemes Support Team



I do have the exact same issue, I'm using Asp.Net.Core, if I use gulp --demo1 works but with --demo30 some visual content doesn't load pretty well, so I tried with webpack (removing the "type": "module" line following the documentation):
npm run build --demo30

> keenthemes@1.0.0 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.



I have same issue.
node version 20.6.1
npm version 10.1.0


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