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

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

Closed
jdahlgren opened this issue Aug 15, 2022 · 6 comments
Closed

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

jdahlgren opened this issue Aug 15, 2022 · 6 comments

Comments

@jdahlgren
Copy link

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
@janekx21
Copy link

+1

2 similar comments
@e154
Copy link

e154 commented Aug 15, 2022

+1

@Deadeye07
Copy link

+1

@js2me
Copy link
Member

js2me commented Aug 15, 2022

Hello @jdahlgren ! Thanks for this issue, fix in progress

@js2me
Copy link
Member

js2me commented Aug 15, 2022

Seems that this problem based on closed issue in commander tj/commander.js#1282

@js2me js2me mentioned this issue Aug 15, 2022
@js2me
Copy link
Member

js2me commented Aug 15, 2022

fixed in 10.0.1

@js2me js2me closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants