title: TypeError: Cannot read properties of undefined (reading 'prototype') React Typescript + Express
body: <p>I'm trying to use express at my React-Typescript SPA. But It's giving me the error:</p>
  <pre><code>    TypeError: Cannot read properties of undefined (reading 'prototype')
  (anonymous function)
  node_modules/express/lib/response.js:42
    39 |  * @public
    40 |  */
    41 | 
  &gt; 42 | var res = Object.create(http.ServerResponse.prototype)
    43 | 
    44 | /**
    45 |  * Module exports.
  </code></pre>
  <p>I've tried adding <code>target: &quot;node&quot;</code> to my  <code>&quot;node_modules/react-scripts/config/webpack.config.js&quot;</code> But it won't work...</p>
  <p>Here's some ways I've already tried to solve it:</p>
  <pre><code>    import express from &quot;express&quot;;
      app = express();
  ---------------
      import express from &quot;express&quot;;
      let app: express.Application;
      app = express();
  -------------
  
      import express from &quot;express&quot;;
      let app: any;
      app = express();
  
  -------------
      const express require(&quot;express&quot;);
      let app: express.Application;
      app = express();
  </code></pre>