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

Symfony_Demo1


Hello i have a problème, when i try to make "npm run build" i have this error
"> keenthemes@1.0.0 build
> webpack

Source: C:/Users/yuris/Downloads/metronic_symfony_v8.2.0_demo1/symfony_demo1/themes/npm_version/html/demo1/src
Output: C:/Users/yuris/Downloads/metronic_symfony_v8.2.0_demo1/symfony_demo1/themes/npm_version/html/demo1/dist/assets
[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."

Can you help me pls ?


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


I'm sorry to hear that you're facing an issue with the webpack configuration in your Symfony project.
To address this issue, you can try the following steps:

1. Update Webpack Configuration

The error you're encountering might be related to the webpack configuration. You can try updating the webpack.config.js file located in your Symfony project.

- Find the file at this path: /symfony/starterkit/_keenthemes/tools/webpack.config.js.
- Open the file and navigate to lines 113-116.
- Replace the existing entry configuration with the updated configuration provided in this link: [webpack.config.js - Lines 113-116]( https://gist.github.com/KeenthemesHub/2189b96490016bc32f88b3091e446906#file-webpack-config-js-L113-L116 ).

2. Run "npm run build" Again

After updating the webpack configuration, try running npm run build again in your project's root directory. Hopefully, the updated configuration will resolve the issue and allow webpack to build your project successfully.

3. Known Issue in Windows

It's mentioned that there's a known issue with Windows. Make sure to update the webpack configuration file as instructed in the provided link.

If you still face issues after trying these steps, consider reaching out to Keenthemes support or community forums for further assistance.


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