Closed snowdream closed 4 years ago
It appears you running this lib has is in the browser. Notice that Node.JS built in modules cannot run in browser, this reason you are getting the error is because in the following line:
addFunctions(STUBBED_METHODS_NAME, http.ClientRequest);
http
module doesn't have ClientRequest
which will never happen in Node.JS env.
When i use http2-client and got in the vue project. i get an error as follows:
in the code :(request.js)