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