title: Webpack 4 : ERROR in Entry module not found: Error: Can't resolve './src'
body: <p>I was trying to run <strong>webpack-4</strong> first time </p>
  
  <pre><code>webpack ./src/js/app.js ./dist/app.bundle.js
  </code></pre>
  
  <p><strong>it shows warning / error :</strong></p>
  
  <pre><code>WARNING in configuration
  The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
  You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
  
  ERROR in multi ./src/js/app.js ./dist/app.bundle.js
  Module not found: Error: Can't resolve './dist/app.bundle.js' in 'D:\wamp64\www\webpack-4'
   @ multi ./src/js/app.js ./dist/app.bundle.js
  </code></pre>
  
  <p><strong>Then i tried to change the mode</strong></p>
  
  <pre><code>webpack --mode development
  </code></pre>
  
  <p>it shows :</p>
  
  <pre><code>ERROR in Entry module not found: Error: Can't resolve './src'
  </code></pre>