title: TypeError: Cannot read property 'name' of undefined at new WebpackCLI
body: <p>I'm trying to run <code>yarn dev</code> in my project and nothing happen, just display this error below:</p>
  <pre><code>[webpack-cli] TypeError: Cannot read property 'name' of undefined
      at new WebpackCLI (C:\Users\mikae\Desktop\phaser-game-multiplayer\game\node_modules\webpack-cli\lib\webpack-cli.js:18:22)
      at runCLI (C:\Users\mikae\Desktop\phaser-game-multiplayer\game\node_modules\webpack-cli\lib\bootstrap.js:7:21)
      at Object.&lt;anonymous&gt; (C:\Users\mikae\Desktop\phaser-game-multiplayer\game\node_modules\webpack-cli\bin\cli.js:25:5)
      at Module._compile (node:internal/modules/cjs/loader:1092:14)
      at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
      at Module.load (node:internal/modules/cjs/loader:972:32)
      at Function.Module._load (node:internal/modules/cjs/loader:813:14)
      at Module.require (node:internal/modules/cjs/loader:996:19)
      at require (node:internal/modules/cjs/helpers:92:18)
      at runCli (C:\Users\mikae\Desktop\phaser-game-multiplayer\game\node_modules\webpack\bin\webpack.js:69:2)
  error Command failed with exit code 2.
  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  </code></pre>
  <p>part of my <code>webpack-cli.js</code> where it's displaying the error</p>
  <pre><code>this.program = program;
  this.program.name(&quot;webpack&quot;);
  this.program.configureOutput({
          writeErr: this.logger.error,
          outputError: (str, write) =&gt;
              write(
                  `Error: ${this.utils.capitalizeFirstLetter(str.replace(/^error:/, &quot;&quot;).trim())}`,
              ),
      });
  </code></pre>
  <p>What can I do? I just want to initialize my program.</p>