title: Webpack Error: configuration.module
body: <p>I have an uncommon webpack error and I don't know how to fix it..</p>
  
  <p>It has something to do with my <strong>configuration</strong>, but I don't know what it is. A schoolmate of mine can perfectly run <code>webpack</code> in the console with the <strong>same project</strong>.</p>
  
  <p>Earlier I got the error:</p>
  
  <pre><code>PS E:\HTL\Projects\EasyWater\Software\Beispielprojekte\WebPack_Dummy&gt; webpack
  The CLI moved into a separate package: webpack-cli.
  Please install 'webpack-cli' in addition to webpack itself to use the CLI.
  -&gt; When using npm: npm install webpack-cli -D
  -&gt; When using yarn: yarn add webpack-cli -D
  </code></pre>
  
  <p>then I installed the Webpack CLI globally and now finally I get the error:</p>
  
  <pre><code>PS E:\HTL\Projects\EasyWater\Software\Beispielprojekte\WebPack_Dummy&gt; webpack
  Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
   - configuration.module has an unknown property 'loaders'. These properties are valid:
     object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unk
  nownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
     -&gt; Options affecting the normal modules (`NormalModuleFactory`).
  </code></pre>
  
  <p>I have already reinstalled node js and <strong>literally</strong> everything, but I am continously get the same error.</p>
  
  <p>As I said, my schoolmate can execute <code>webpack</code> with the <strong>same</strong> project.</p>
  
  <p>I have installed:</p>
  
  <ul>
  <li>ts-loader -g  </li>
  <li>webpack -g</li>
  <li>webpack-cli -g</li>
  <li>typescript -g</li>
  </ul>