jhiesey / stream-http

Streaming node http in the browser
MIT License
354 stars 62 forks source link

Uncaught TypeError: function Buffer(arg) #79

Closed njj closed 7 years ago

njj commented 7 years ago
Uncaught TypeError: function Buffer(arg) {
  if (!(this instanceof Buffer)) {
    // Avoid going through an ArgumentsAdaptorTrampol...<omitted>...
} is not a function

Has anyone seen an error similar to this caused by this lib? I can't seem to figure out why its happening around the time of request.write.

jhiesey commented 7 years ago

That's a weird error. What browser/environment are you using? Anything else unusual about your setup?

njj commented 7 years ago

@jhiesey Its a React app using browserify and I use Chrome. Here's the part of code I've narrowed it down to:

request.write(postBody);
njj commented 7 years ago

Moving to buffer lib issues.