webpack-cli: bug: No Entry found & argument error

Bug report

What is the current behavior? It fails to build and shows this:

cross-env NODE_ENV=production webpack --mode production --progress --hide-modules

[prerender-spa-plugin] You appear to be using the v2 argument-based configuration options. It's recommended that you migrate to the clearer object-based configuration system.
Check the documentation for more information.
                                                                          
Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.

Hash: b472844c05bb4ae38896
Version: webpack 4.16.5
Time: 250ms
Built at: 10/08/2018 13:58:49

ERROR in Entry module not found: Error: Can't resolve './src' in '/home/maxie/Dropbox/Public/Learning/VueJS/vue-static'
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior? It should build the application successfully like how it was done here which worked until the warnings messages which got me to update the plugins and the config to what can be found in this repo.

Other relevant information: webpack version: 4.16.5 Node.js version: 10.7.0 Operating System: ArchLinux x64 (Linux 4.17.11.a-1-hardened) Additional tools: webpack-cli@3.1.0, webpack-dev-server@3.1.5


This issue was moved from webpack/webpack#7874 by @montogeek. Original issue was by @Berkmann18.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 30 (16 by maintainers)

Most upvoted comments

guys I need help please…

webpack is watching the files…

Insufficient number of arguments or no entry found. Alternatively, run ‘webpack(-cli) --help’ for usage info.

Hash: 385988a35ae66e7ab1b0 Version: webpack 4.29.6 Time: 112ms Built at: 2019-04-03 01:11:53

ERROR in Entry module not found: Error: Can’t resolve ‘./main.js’ in ‘C:\Users\nesca\Desktop\aula-es6’ Done in 3.49s.

Hey!

Try change: var VueLoaderPlugin = require('vue-loader') to const VueLoaderPlugin = require('vue-loader/lib/plugin');

I had same problem - after that, works nice!

( https://vue-loader.vuejs.org/migrating.html#loader-inference )

Grabbing this next week, sorry for the hold up, but got a (very needed) vacation until monday