Skip to content

10.0.0 - TypeError: this.name is not a function #381

Closed
@jdahlgren

Description

@jdahlgren

Im getting the following error since the new version. The command worked in previous release:
Im running the command npx swagger-typescript-api -p filename.json -n outfile

/home/vsts/.npm/_npx/ad2f6472e51cc62f/node_modules/commander/lib/command.js:1258
    const commandEvent = `command:${this.name()}`;
                                         ^

TypeError: this.name is not a function
    at Command._parseCommand (/home/vsts/.npm/_npx/ad2f6472e51cc62f/node_modules/commander/lib/command.js:1258:42)
    at Command.parse (/home/vsts/.npm/_npx/ad2f6472e51cc62f/node_modules/commander/lib/command.js:891:10)
    at Object.<anonymous> (/home/vsts/.npm/_npx/ad2f6472e51cc62f/node_modules/swagger-typescript-api/index.js:73:9)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions