-
-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Description
Hi, I've been trying to get typegen to work for a while now but I constantly get this error:
DeprecationWarning: 'createInterfaceDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter.
node:internal/errors:491
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:400:5)
at URL.onParseError (node:internal/url:565:9)
at new URL (node:internal/url:645:5)
... more
I installed typegen by running npm
install -g openapi-client-axios-typegen
And I've tried multiple variations of running typegen, with a local file and the remote URL in the README.md documentation. So:
typegen ./openapi.yml
typegen ./openapi.yml > client.d.ts
typegen https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
typegen https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml > client.d.ts
They all give me the same exact "[ERR_INVALID_URL]" error. Am I doing something wrong?
Thanks!
BoldizsarPanttiviljami
Metadata
Metadata
Assignees
Labels
No labels