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

TypeError on yargs when using concurrently to start services #314

Closed
jchli opened this issue Apr 19, 2022 · 4 comments
Closed

TypeError on yargs when using concurrently to start services #314

jchli opened this issue Apr 19, 2022 · 4 comments

Comments

@jchli
Copy link

jchli commented Apr 19, 2022

Hello, we're running into an intermittent issue where we get a

TypeError: shim$1.Parser.lookslikeNumber is not a function error when trying to start up our services with: concurrently "npm run local-server" "npm run l10n-watch". It looks like its coming from yargs.

We currently need to npm uninstall concurrently && npm install concurrently to "fix" it

The stacktrace:

/app-repo/node_modules/concurrently/node_modules/yargs/build/index.cjs:2804
        if (shim$1.Parser.lookslikeNumber(arg) &&
                          ^

TypeError: shim$1.Parser.lookslikeNumber is not a function
    at Object.Yargs.self._parsePositionalNumbers (app-repo/node_modules/concurrently/node_modules/yargs/build/index.cjs:2804:31)
    at Object.Yargs.self._postProcess (app-repo/node_modules/concurrently/node_modules/yargs/build/index.cjs:2787:25)
    at Object.parseArgs [as _parseArgs] (app-repo/node_modules/concurrently/node_modules/yargs/build/index.cjs:2774:21)
    at Object.get [as argv]] (app-repo/node_modules/concurrently/node_modules/yargs/build/index.cjs:2651:25)
    at Object.<anonymous> (app-repo/node_modules/concurrently/dist/bin/concurrently.js:170:5)

Version: concurrently@7.1.0

@paescuj
Copy link
Collaborator

paescuj commented May 10, 2022

There's a high chance that this is fixed by #307 as it includes a version upgrade of yargs. I guess there will be a new release of concurrently soon...

@gustavohenke
Copy link
Member

Said new release is out now -- do you want to give it a try and report back, @jchli?

@paescuj
Copy link
Collaborator

paescuj commented May 21, 2022

Closing as I assume this has been fixed Please open a new issue if the problem still exists

@paescuj paescuj closed this as completed May 21, 2022
@BowlingX
Copy link

I'm having the same problem with yargs >= 17.6.1, the last version that works is 17.6.0.

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

4 participants