Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

TypeError: The "path" argument must be of type string #68

Closed fairking closed 4 years ago

fairking commented 4 years ago

After upgrading from 0.9.7 to 0.9.9 got the following error: npm: '6.13.6', node: '12.14.1',

(node:2816) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:112:11)
    at Object.resolve (path.js:139:9)
    at definitionHeader (C:\Code\Maximus\src\Maximus.App\node_modules\swagger-axios-codegen\dist\templates\serviceHeader.js:124:53)
    at Object.serviceHeader (C:\Code\Maximus\src\Maximus.App\node_modules\swagger-axios-codegen\dist\templates\serviceHeader.js:44:5)
    at C:\Code\Maximus\src\Maximus.App\node_modules\swagger-axios-codegen\dist\index.js:73:31
    at Generator.next (<anonymous>)
    at fulfilled (C:\Code\Maximus\src\Maximus.App\node_modules\swagger-axios-codegen\dist\index.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)