openapi-ts icon indicating copy to clipboard operation
openapi-ts copied to clipboard

DeprecationWarning: fs.Stats constructor is deprecated

Open numfin opened this issue 1 year ago • 3 comments

Description

"@hey-api/openapi-ts": "^0.45.1"
node v22.0.0

After running openapi-ts in my nodejs project i get message in console: DeprecationWarning: fs.Stats constructor is deprecated

OpenAPI specification (optional)

No response

Configuration

import { defineConfig } from "@hey-api/openapi-ts";

export default defineConfig({
  input: "http://localhost:3000/spec",
  output: {
    path: "src/client",
    lint: "eslint",
  },
  client: "fetch",
  types: {
    enums: "javascript",
    dates: true,
  },
});

System information (optional)

nixos 23.10 with unstable nodejs 22

numfin avatar May 16 '24 12:05 numfin

Hey @numfin, does the script never execute/complete for you?

mrlubos avatar May 16 '24 13:05 mrlubos

@mrlubos script executes and working. Just an extra warning in console

numfin avatar May 16 '24 14:05 numfin

Oh, thanks for letting me know! I'll close this then as it's not a bug, but will have a look later at where this is throwing and how it can be fixed

mrlubos avatar May 16 '24 15:05 mrlubos