openapi-ts
openapi-ts copied to clipboard
DeprecationWarning: fs.Stats constructor is deprecated
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
Hey @numfin, does the script never execute/complete for you?
@mrlubos script executes and working. Just an extra warning in console
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