title: Express application crashes when it is built with webpack
body: <p>I am trying to use <code>graphql-upload</code> in a typescript express app (graphql api) built with webpack. When I run with ts-node my app works fine. But when I compile with webpack and then run I get a weird error when I try to upload a file.</p>
  <h3>My setup</h3>
  <ul>
  <li>Typescript app</li>
  <li>Apollo server / Typegraphql</li>
  <li>Build with webpack</li>
  </ul>
  <h3>My Code</h3>
  <p>(stripped down to the essentials)</p>
  <p><a href="https://github.com/ziggy6792/graphql-file-uploads" rel="nofollow noreferrer">https://github.com/ziggy6792/graphql-file-uploads</a></p>
  <h3>My Problem</h3>
  <p>When I run with ts-node <code>yarn start:ts:node</code> then run <code>yarn test</code> an image gets uploaded no problem</p>
  <p>But then I build with webpack <code>yarn start</code> then run <code>yarn test</code> I get the following error</p>
  <pre><code>/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:56105
              if (!isObject(operations) &amp;&amp; !Array.isArray(operations))
                   ^
  
  TypeError: isObject is not a function
      at Busboy.&lt;anonymous&gt; (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:56105:18)
      at Busboy.emit (node:events:378:20)
      at Busboy.module.exports../node_modules/busboy/lib/main.js.Busboy.emit (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:32204:33)
      at PartStream.onEnd (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:32528:15)
      at PartStream.emit (node:events:390:22)
      at Dicer.onPart (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:32386:13)
      at Dicer.emit (node:events:378:20)
      at Dicer.module.exports../node_modules/dicer/lib/Dicer.js.Dicer.emit (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:45439:35)
      at Dicer.module.exports../node_modules/dicer/lib/Dicer.js.Dicer._oninfo (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:45540:12)
      at SBMH.&lt;anonymous&gt; (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:45486:10)
  [nodemon] app crashed - waiting for file changes before starting...
  </code></pre>
  <h3>My Attempts to solve</h3>
  <p>I am not sure if this actually a problem with <code>graphql-upload</code> or <code>webpack</code> or something else. I also noticed that my issue looks similar to this <a href="https://github.com/jaydenseric/graphql-upload/issues/218" rel="nofollow noreferrer">issue</a>, but I didn't really understand if there were any fixes to that issue and if indeed it is the same issue I am facing.</p>
  <p>I tried to upgrade webpack (branch <code>upgraded-packages</code>) but this made the problem worse as I get this issue when I start the server</p>
  <pre><code>TypeError: Cannot read property 'graphql' of undefined
      at getPeerDependencyGraphQLRequirement (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:104216:44)
      at Object.ensureInstalledCorrectGraphQLPackage (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:104221:32)
      at Function.checkForErrors (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:103346:27)
      at Function.generateFromMetadataSync (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:103325:14)
      at Function.generateFromMetadata (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:103315:29)
      at Object.buildSchema (/Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:103940:61)
      at /Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:99831:41
      at Generator.next (&lt;anonymous&gt;)
      at /Users/sive/Documents/workspace/graphql-file-uploads/dist/index.js:99819:71
      at new Promise (&lt;anonymous&gt;)
  </code></pre>
  <p>Any help would be greatly appreciated.</p>