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

Warning: Accessing non-existent property '' of module exports inside circular dependency #178

Closed
fishcharlie opened this issue Apr 28, 2020 · 2 comments
Labels
type: question question directed at the library

Comments

@fishcharlie
Copy link

Issue Summary

When upgrading to Node.js v14.0.0 and running any Twilio command it prints a bunch of warnings.

This should be fixed to not print any warnings on a valid Twilio command.

Related Node.js Issue: nodejs/node#32987

Steps to Reproduce

  1. Upgrade to Node.js > 14.0.0
  2. Run twilio

Code Snippet

NA

Exception/Log

charliefish@Charlies-MacBook-Pro ~ % twilio
(node:51510) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:51510) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:51510) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
unleash the power of Twilio from your command prompt

VERSION
  twilio-cli/2.0.0 darwin-x64 node-v14.0.0

USAGE
  $ twilio [COMMAND]

COMMANDS
  api            advanced access to all of the Twilio APIs
  autocomplete   display autocomplete installation instructions
  debugger       Show a list of log events generated for the account
  email          sends emails to single or multiple recipients using Twilio SendGrid
  feedback       provide feedback to the CLI team
  help           display help for twilio
  login          create a new profile to store Twilio Account credentials and configuration
  phone-numbers  manage Twilio phone numbers
  plugins        list installed plugins
  profiles       manage credentials for Twilio profiles

Technical details:

  • twilio-cli version: twilio-cli/2.0.0
  • node version: node-v14.0.0
  • Command output with debug logging enabled (adding -l debug to the end of the command):
charliefish@Charlies-MacBook-Pro ~ % twilio -l debug
(node:51685) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:51685) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:51685) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
 ›   Error: command -l not found
@childish-sambino
Copy link
Contributor

Looks like this was fixed by a dependency update in the 2.0.1 release. If you're able to upgrade to 2.0.1, let me know if you're still seeing it.

@childish-sambino childish-sambino added status: waiting for feedback waiting for feedback from the submitter type: question question directed at the library labels Apr 30, 2020
@fishcharlie
Copy link
Author

Closing this issue as Twilio CLI v2.0.1 fixes this. Thanks @childish-sambino!!

@childish-sambino childish-sambino removed the status: waiting for feedback waiting for feedback from the submitter label Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question question directed at the library
Projects
None yet
Development

No branches or pull requests

2 participants