swagger-typescript-api
swagger-typescript-api copied to clipboard
Cannot read property 'prototype' of undefined when instantiating Axios class from template
Hi everyone, how are you doing? I've been playing with the axios template but can't figure out what's wrong here. Whenever I try to instantiate the api I get the following error:
Cannot read property 'prototype' of undefined
with BFF being the class exported by the typescript file generated when running the command to generate axios code from swagger docs:
npx swagger-typescript-api -p ./src/clients/bff/bff.json -o ./src -n clients/bff/bff.ts --axios --api-class-name BFF
What am I missing here?
