cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Version 18.0.0, TypeError: argParser.add_argument is not a function #173

Closed monir-a-khan closed 2 years ago

monir-a-khan commented 3 years ago

Hi, updating ng-openapi-gen to 18.0.0 throwing the following error.

Error on API generation: TypeError: argParser.add_argument is not a function.

Node: 14.17.4 Typescript: 4.3.5 Python: 3.9.7

luisfpg commented 2 years ago

Actually, the version you mean is 0.18.0. As of now, the latest version is 0.19.1. Have you executed npm install? The argparse library has changed its api, and that one is the correct way now.