The thing is that prototype is not defined , although in the node console writing http.IncomingMessage.prototype does give an object as an output. Any Ideas ?
var req = Object.create(http.IncomingMessage.prototype)
Uncaught TypeError: Cannot read property 'prototype' of undefined
at http://localhost:62625/____wallaby-bundle.js?1501265946287&wallabyFileId=bundle:219253
I think
http.IncomingMessage
is undefined.It may happened http has been overridden some where in your code .
I have tested the above code and it works.