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

I am getting the following error when running --help #21

Open
LZiHaN opened this issue Jul 19, 2022 · 3 comments
Open

I am getting the following error when running --help #21

LZiHaN opened this issue Jul 19, 2022 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@LZiHaN
Copy link

LZiHaN commented Jul 19, 2022

internal/util.js:257
throw new ERR_INVALID_ARG_TYPE('original', 'Function', original);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function. Received type undefined
at promisify (internal/util.js:257:11)
at Object. (/usr/local/lib/node_modules/open-swagger-ui/node_modules/compress-brotli/src/index.js:9:18)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
at Module.load (internal/modules/cjs/loader.js:605:32)
at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
at Function.Module._load (internal/modules/cjs/loader.js:536:3)
at Module.require (internal/modules/cjs/loader.js:643:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/usr/local/lib/node_modules/open-swagger-ui/node_modules/keyv/src/index.js:5:24)

@vajahath
Copy link
Owner

Could you please provide a few more details like the OS you are using and the command you tried?

@LZiHaN
Copy link
Author

LZiHaN commented Jul 19, 2022

macOS 10.13.6. #

➜ ~ open-swagger-ui --help
internal/util.js:257
throw new ERR_INVALID_ARG_TYPE('original', 'Function', original);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function. Received type undefined
at promisify (internal/util.js:257:11)
at Object. (/usr/local/lib/node_modules/open-swagger-ui/node_modules/compress-brotli/src/index.js:9:18)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
at Module.load (internal/modules/cjs/loader.js:605:32)
at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
at Function.Module._load (internal/modules/cjs/loader.js:536:3)
at Module.require (internal/modules/cjs/loader.js:643:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/usr/local/lib/node_modules/open-swagger-ui/node_modules/keyv/src/index.js:5:24)

@vajahath vajahath changed the title I am getting the following error when using I am getting the following error when running --help Jul 19, 2022
@vajahath vajahath added help wanted Extra attention is needed good first issue Good for newcomers labels Jul 20, 2022
@vajahath
Copy link
Owner

$ open-swagger-ui --version
1.2.0
$ open-swagger-ui --help
Usage: open-swagger-ui [options] <swagger-file>

An easy CLI tool to open swagger.json or .yaml files in Swagger UI.

Options:
  -V, --version      output the version number
  -O, --open         Open stuff in browser
  -P, --port <port>  Preferred port. If not available, a random port is selected
  -h, --help         output usage information

I was not able to reproduce this on Ubuntu. I don't have a mac. Can you debug this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants