Python-Tls-Client icon indicating copy to clipboard operation
Python-Tls-Client copied to clipboard

Can't find STATUS_CODES

Open ishandutta2007 opened this issue 10 months ago • 2 comments

package.json:

{
  "dependencies": {
    ....
    "tls-client": "^0.0.5",
  }
}

npm -v

9.6.5

node -v

v16.17.1

I am on macOS 10.13.6

I am trying to build project npm run build

"STATUS_CODES" is not exported by "__vite-browser-external", imported by "node_modules/tls-client/dist/esm/response.js".
file: /Users/ishandutta2007/Documents/Projects/GrandGPT/node_modules/tls-client/dist/esm/response.js:2:9
1: import { TLSClientException } from "./exceptions";
2: import { STATUS_CODES } from "http";
            ^
3: class Response {
4:     url;
error during build:
RollupError: "STATUS_CODES" is not exported by "__vite-browser-external", imported by "node_modules/tls-client/dist/esm/response.js".

ishandutta2007 avatar Aug 25 '23 15:08 ishandutta2007