[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.
Hi,
There is known issue in Windows. Here is the temporary workaround you can follow.
You can try replacing your `/tools/webpack.config.js` file with an updated configuration file. You can find an example of an updated configuration file in this
https://gist.github.com/KeenthemesHub/9bb8c1cb3e111adca7bd6df1b4272e20#file-webpack-config-js-L114-L116
Download the updated webpack configuration file and replace your existing `/tools/webpack.config.js` file with it. Be sure to backup your existing configuration file before making any changes.
This may resolve the issue until a more permanent solution is available.
We greatly appreciate your patience and understanding.
I have the same issue but replacing the webpack.config.js file does not help me and I continue to get this error
Same problem here. After webpack.config.js build passes but with a bunch of errors.
ERROR in ./webpack/plugins/custom/draggable/draggable.js 3:0-53
Module not found: Error: Can't resolve '@shopify/draggable/lib/draggable.bundle.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 4:0-60
Module not found: Error: Can't resolve '@shopify/draggable/lib/draggable.bundle.legacy.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 5:0-46
Module not found: Error: Can't resolve '@shopify/draggable/lib/draggable.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 6:18-63
Module not found: Error: Can't resolve '@shopify/draggable/lib/sortable.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 7:19-65
Module not found: Error: Can't resolve '@shopify/draggable/lib/droppable.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 8:19-65
Module not found: Error: Can't resolve '@shopify/draggable/lib/swappable.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 9:0-44
Module not found: Error: Can't resolve '@shopify/draggable/lib/plugins.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 10:0-55
Module not found: Error: Can't resolve '@shopify/draggable/lib/plugins/collidable.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 11:0-58
Module not found: Error: Can't resolve '@shopify/draggable/lib/plugins/resize-mirror.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 12:0-54
Module not found: Error: Can't resolve '@shopify/draggable/lib/plugins/snappable.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/draggable/draggable.js 13:0-59
Module not found: Error: Can't resolve '@shopify/draggable/lib/plugins/swap-animation.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/draggable'
ERROR in ./webpack/plugins/custom/prismjs/prismjs.js 13:0-45
Module not found: Error: Can't resolve '@/js/vendors/plugins/prism.init.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins/custom/prismjs'
ERROR in ./webpack/plugins/plugins.js 40:24-94
Module not found: Error: Can't resolve '@/plugins/formvalidation/dist/js/FormValidation.full.min.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/plugins/plugins.js 41:43-117
Module not found: Error: Can't resolve '@/plugins/formvalidation/dist/amd/plugins/Bootstrap5.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/plugins/plugins.js 54:0-47
Module not found: Error: Can't resolve '@/js/vendors/plugins/select2.init.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/plugins/plugins.js 58:0-54
Module not found: Error: Can't resolve '@/js/vendors/plugins/tempus-dominus.init.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/plugins/plugins.js 81:0-48
Module not found: Error: Can't resolve '@/js/vendors/plugins/dropzone.init.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/plugins/plugins.js 91:16-63
Module not found: Error: Can't resolve '@/plugins/toastr/build/toastr.min.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/plugins/plugins.js 98:0-51
Module not found: Error: Can't resolve '@/js/vendors/plugins/sweetalert2.init.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/plugins/plugins.js 101:17-71
Module not found: Error: Can't resolve 'countup.js/dist/countUp.withPolyfill.min.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack/plugins'
ERROR in ./webpack/scripts.js 2:22-57
Module not found: Error: Can't resolve '@/js/components/_init.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 3:16-50
Module not found: Error: Can't resolve '@/js/components/util.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 4:15-48
Module not found: Error: Can't resolve '@/js/components/app.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 5:24-67
Module not found: Error: Can't resolve '@/js/components/event-handler.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 6:19-56
Module not found: Error: Can't resolve '@/js/components/blockui.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 7:18-54
Module not found: Error: Can't resolve '@/js/components/cookie.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 8:18-54
Module not found: Error: Can't resolve '@/js/components/dialer.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 9:18-54
Module not found: Error: Can't resolve '@/js/components/drawer.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 10:20-58
Module not found: Error: Can't resolve '@/js/components/feedback.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 11:22-63
Module not found: Error: Can't resolve '@/js/components/image-input.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 12:16-50
Module not found: Error: Can't resolve '@/js/components/menu.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 13:25-69
Module not found: Error: Can't resolve '@/js/components/password-meter.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 14:18-54
Module not found: Error: Can't resolve '@/js/components/scroll.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 15:21-60
Module not found: Error: Can't resolve '@/js/components/scrolltop.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 16:18-54
Module not found: Error: Can't resolve '@/js/components/search.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 17:19-56
Module not found: Error: Can't resolve '@/js/components/stepper.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 18:18-54
Module not found: Error: Can't resolve '@/js/components/sticky.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 19:19-56
Module not found: Error: Can't resolve '@/js/components/swapper.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 20:18-54
Module not found: Error: Can't resolve '@/js/components/toggle.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 23:22-55
Module not found: Error: Can't resolve '@/js/layout/sidebar.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 24:24-56
Module not found: Error: Can't resolve '@/js/layout/search.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 25:25-58
Module not found: Error: Can't resolve '@/js/layout/toolbar.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 26:21-57
Module not found: Error: Can't resolve '@/js/layout/theme-mode.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
ERROR in ./webpack/scripts.js 27:25-66
Module not found: Error: Can't resolve '@/js/layout/theme-mode-user.js' in '/Users/zarko/RubymineProjects/tradelink/metronic/rails_demo1/starterkit/_keenthemes/tools/webpack'
1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 46 errors
Same issue here. The new config doesn't work.