title: TypeError: Cannot read properties of undefined (reading 'prototype')
body: <p>Unlike <a href="https://stackoverflow.com/questions/59903475/typeerror-cannot-read-property-prototype-of-undefined-react-express"><code>this</code></a> one, the import is intentional. I need to use the express module. How can I fix that? I've tried but I couldn't make a sample to reproduce it. So I'm open to guesses on what can be the reason for the error. The error is caused by the import:</p>
  <pre><code>import express from 'express'
  </code></pre>
  <p>I also tried:</p>
  <pre><code>import {express} from 'express'
  </code></pre>
  <p>neither does work.</p>
  <p>the error:</p>
  <pre><code>×
  TypeError: Cannot read properties of undefined (reading 'prototype')
  (anonymous function)
  C:/Users/artur/Desktop/merge/editor/node_modules/express/lib/response.js:41
    38 |  * @public
    39 |  */
    40 | 
  &gt; 41 | var res = Object.create(http.ServerResponse.prototype)
    42 | 
    43 | /**
    44 |  * Module exports.
  </code></pre>
  <p>What could be the reason for this error?</p>