Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen-api-models --help error #43

Open
ferndem opened this issue Jul 6, 2018 · 2 comments
Open

gen-api-models --help error #43

ferndem opened this issue Jul 6, 2018 · 2 comments

Comments

@ferndem
Copy link

ferndem commented Jul 6, 2018

Hi,
I have installed last node packet of italia-utils but when I execute any command I have this result:
gen_api_models_1.generateApi(env, argv["api-spec"], argv["out-dir"], argv["ts-spec-file"], argv.strict
TypeError: Cannot read property 'api-spec' of undefined

Es input:
gen-api-models --help
gen-api-models --api-spec https://raw.githubusercontent.com/teamdigitale/italia-backend/v0.0.27/api_proxy.yaml --out-dir ./definitions/backend

@gunzip
Copy link
Contributor

gunzip commented Jul 6, 2018

I cannot reproduce the issue. Which version of nodejs ? how did you install the package ? (npm or yarn ?)

you may try with

yarn ts-node src/index --api-spec https://raw.githubusercontent.com/teamdigitale/italia-backend/v0.0.27/api_proxy.yaml --out-dir ./definitions/backend

from within the package directory

@ferndem
Copy link
Author

ferndem commented Jul 9, 2018

Hi,
I use nodejs 10.5.0 on windows 10 OS.

with the command:

yarn ts-node src/index --api-spec https://raw.githubusercontent.com/teamdigitale/italia-backend/v0.0.27/api_proxy.yaml --out-dir ./definitions/backend

the utils it works

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants