title: Webpack has been initialized using a configuration object that doesn't match the API schema
body: <p>Using Ruby on Rails (6.1.4.4) and constantly getting the following error after upgrading <code>webpack</code> from 4.46.0 to 5.67.0 and <code>webpack-cli</code> from version 3.3.12 to 4.9.2:</p>
  <pre><code>root@b26d476dafbd:/myapp$ bin/webpack
  [webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
   - configuration.node should be one of these:
     false | object { __dirname?, __filename?, global? }
     -&gt; Include polyfills or mocks for various node stuff.
     Details:
      * configuration.node has an unknown property 'dgram'. These properties are valid:
        object { __dirname?, __filename?, global? }
        -&gt; Options object for node compatibility features.
      * configuration.node has an unknown property 'fs'. These properties are valid:
        object { __dirname?, __filename?, global? }
        -&gt; Options object for node compatibility features.
      * configuration.node has an unknown property 'net'. These properties are valid:
        object { __dirname?, __filename?, global? }
        -&gt; Options object for node compatibility features.
      * configuration.node has an unknown property 'tls'. These properties are valid:
        object { __dirname?, __filename?, global? }
        -&gt; Options object for node compatibility features.
      * configuration.node has an unknown property 'child_process'. These properties are valid:
        object { __dirname?, __filename?, global? }
        -&gt; Options object for node compatibility features.
  </code></pre>
  <p>Here's an example of my <code>package.json</code>:</p>
  <pre><code>{
    &quot;name&quot;: &quot;vspm&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@claviska/jquery-minicolors&quot;: &quot;^2.3.6&quot;,
      &quot;@rails/activestorage&quot;: &quot;^7.0.1&quot;,
      &quot;@rails/ujs&quot;: &quot;^7.0.1&quot;,
      &quot;@rails/webpacker&quot;: &quot;5.4.3&quot;,
      &quot;add&quot;: &quot;^2.0.6&quot;,
      &quot;bootstrap&quot;: &quot;5.1.3&quot;,
      &quot;bootstrap4-tagsinput&quot;: &quot;^4.1.3&quot;,
      &quot;bufferutil&quot;: &quot;^4.0.6&quot;,
      &quot;cocoon&quot;: &quot;github:nathanvda/cocoon#c24ba53&quot;,
      &quot;datatables.net&quot;: &quot;^1.11.4&quot;,
      &quot;datatables.net-bs4&quot;: &quot;^3.2.2&quot;,
      &quot;google-libphonenumber&quot;: &quot;^3.2.26&quot;,
      &quot;intl-tel-input&quot;: &quot;^17.0.15&quot;,
      &quot;jquery&quot;: &quot;^3.6.0&quot;,
      &quot;jquery-mask-plugin&quot;: &quot;^1.14.16&quot;,
      &quot;justgage&quot;: &quot;^1.5.1&quot;,
      &quot;moment&quot;: &quot;^2.29.1&quot;,
      &quot;node-waves&quot;: &quot;^0.7.6&quot;,
      &quot;popper.js&quot;: &quot;^1.16.1&quot;,
      &quot;raphael&quot;: &quot;^2.3.0&quot;,
      &quot;textlint&quot;: &quot;^12.1.0&quot;,
      &quot;utf-8-validate&quot;: &quot;^5.0.8&quot;,
      &quot;webpack&quot;: &quot;^5.67.0&quot;,
      &quot;webpack-cli&quot;: &quot;^4.9.2&quot;,
      &quot;yarn&quot;: &quot;^1.22.17&quot;
    },
    &quot;description&quot;: &quot;This README would normally document whatever steps are necessary to get the application up and running.&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;main&quot;: &quot;pdf.js&quot;,
    &quot;directories&quot;: {
      &quot;lib&quot;: &quot;lib&quot;,
      &quot;test&quot;: &quot;test&quot;
    },
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
    },
    &quot;repository&quot;: {
      &quot;type&quot;: &quot;git&quot;,
      &quot;url&quot;: &quot;git+https://github.com/altjx/goku.git&quot;
    },
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;bugs&quot;: {
      &quot;url&quot;: &quot;https://github.com/altjx/goku/issues&quot;
    },
    &quot;homepage&quot;: &quot;https://github.com/altjx/goku#readme&quot;,
    &quot;devDependencies&quot;: {
      &quot;@babel/plugin-transform-strict-mode&quot;: &quot;^7.16.7&quot;,
      &quot;webpack-dev-server&quot;: &quot;^4.7.3&quot;
    }
  }
  
  </code></pre>
  <p>Not quite sure what would cause this in the upgrade. Unfortunately I'm not even sure where the error message is even pointing to in terms of what the issue really is here.</p>