Cannot read property 'prototype' of undefined, express

2.7k views Asked by At

Cannot read property 'prototype' of undefined, just seemed to randomly appear! I have no idea where it's coming from or why it is there. It's incredibly frustrating! All the browser is telling me is that it's coming from express, but obviously I've not modified the library so the error message is pretty much useless.

response.js:42 Uncaught TypeError: Cannot read property 'prototype' of undefined
at Object.<anonymous> (response.js:42)
at Object../node_modules/express/lib/response.js (response.js:1142)

So anyway I have built a MERN message board and integrated chat and webrtc videocalling with socket.io, and suddenly this error starts to appear. Oh, and I think it's important to note that I used create-react-app for my client, so I'm not dealing with webpack, myself.

I'm so clueless at the moment so please somebody help me out, here.

1

There are 1 answers

0
harry young On

somehow this line was auto imported in react: import { response } from 'express'; i hate when that happens