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

forEachKey is not a function Promise #311

Closed
Mar8x opened this issue Jan 5, 2021 · 2 comments
Closed

forEachKey is not a function Promise #311

Mar8x opened this issue Jan 5, 2021 · 2 comments

Comments

@Mar8x
Copy link

Mar8x commented Jan 5, 2021

Hi!

I got the following issue:

ubuntu@ip-10-10-10-203:~$ cloudcmd --config ~/.cloudcmd.json
forEachKey is not a function Promise {
  <rejected> TypeError: forEachKey is not a function
      at readConfig (file:///usr/local/lib/node_modules/cloudcmd/bin/cloudcmd.mjs:280:5)
      at async main (file:///usr/local/lib/node_modules/cloudcmd/bin/cloudcmd.mjs:190:5)
}

seems like the forEachKey does not return a resolve/reject.
https://github.com/coderaiser/for-each-key/blob/master/lib/for-each-key.js

Note: v14.9.3 does work as expected.

  • Version (cloudcmd -v):
    v15.0.2

  • Node Version node -v:
    v15.5.1
    for-each-key@2.0.0
    simport@1.0.4

  • OS (uname -a on Linux):
    Linux ip-10-10-10-203 4.4.0-1118-aws fix(operation) RESTful.remove -> RESTful.delete #132-Ubuntu SMP Fri Nov 13 18:22:45 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  • Browser name/version:

  • Used Command Line Parameters:
    --config

  • Changed Config:

{
    "editor": "edward"
}
@coderaiser
Copy link
Owner

Thanks a lot :), fixed with 394bf46. Landed in v15.0.3 🎉 .

Is it works for you?

@Mar8x
Copy link
Author

Mar8x commented Jan 5, 2021

Thanks @coderaiser, worked like a charm :-)

@Mar8x Mar8x closed this as completed Jan 5, 2021
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

2 participants