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

CLI doesn't display options when prompted #6

Closed
rfaulhaber opened this issue Aug 24, 2018 · 9 comments · Fixed by #137
Closed

CLI doesn't display options when prompted #6

rfaulhaber opened this issue Aug 24, 2018 · 9 comments · Fixed by #137
Assignees
Labels
dependency-issue Issue with another dependency used good first issue Good for newcomers

Comments

@rfaulhaber
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
When I enter amplify configure the prompt implies that I should see options to select from, but they're not displayed.
screenshot from 2018-08-23 20-25-52

When I enter amplify init I'm given at least one option, but when I select something I'm no longer given options. When I hit enter a second time, I'm given an error.
screenshot from 2018-08-23 20-26-18
screenshot from 2018-08-23 20-26-36
screenshot from 2018-08-23 20-30-21

The full error is here:

readline.js:1032
            throw err;
            ^

TypeError: Cannot read property 'value' of undefined
    at Prompt.getCurrentValue (/home/ryan/.config/yarn/global/node_modules/inquirer/lib/prompts/list.js:126:51)
    at tryCatcher (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:67:31)
    at InnerObserver.next (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:4495:43)
    at InnerObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:1602:31)
    at InnerObserver.tryCatcher (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:67:31)
    at AutoDetachObserverPrototype.next (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:6495:51)
    at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:1602:31)
    at TakeObserver.next (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:4681:17)
    at TakeObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:1602:31)
    at TakeObserver.tryCatcher (/home/ryan/.config/yarn/global/node_modules/rx-lite/rx.lite.js:67:31)

What is the expected behavior?
That it should display options.

Which versions of Amplify CLI, and which OS are affected by this issue? Did this work in previous versions?

Amplify CLI: 0.1.13
OS: Linux Mint 19
Terminal: zsh (tried it on bash, behaves the same way)
Installed with Yarn

@rfaulhaber rfaulhaber changed the title CLI doesn't display options CLI doesn't display options when prompted Aug 24, 2018
@kaustavghosh06
Copy link
Contributor

Hey Ryan. What’s the node version you’re running on?

@rfaulhaber
Copy link
Author

10.9.0.

@mattjennings
Copy link

I'm also experiencing this on macOS 10.13.6 and every node version I've tried (7.10.1, 8.10.0, 9.9.0, and 10.2.1). Using yarn and zsh as well.

@kaustavghosh06
Copy link
Contributor

@mattjennings @rfaulhaber I tried to reproduce on my macOS 10.12 and Ubuntu 18.04 but couldn't reproduce this issue. Might need to use a virtual box to simulate the environments. I'm assigning an Investigating tag to this for now.

@kaustavghosh06 kaustavghosh06 added the investigating This issue is being investigated label Aug 24, 2018
@kaustavghosh06
Copy link
Contributor

kaustavghosh06 commented Aug 24, 2018

@mattjennings @rfaulhaber I was able to reproduce the error when I used yarn instead of npm to install the CLI. Until we find out the root cause of this could you please use npm install -g @aws-amplify/cli to install the CLI?

@mattjennings
Copy link

mattjennings commented Aug 24, 2018

Using npm instead of yarn solved it for me! Thanks!

@kaustavghosh06 kaustavghosh06 self-assigned this Aug 24, 2018
@kaustavghosh06 kaustavghosh06 added dependency-issue Issue with another dependency used and removed investigating This issue is being investigated labels Aug 24, 2018
@rfaulhaber
Copy link
Author

Sounds good to me, thank you!

@kaustavghosh06 kaustavghosh06 added the good first issue Good for newcomers label Aug 24, 2018
@ceich
Copy link

ceich commented Aug 30, 2018

Not sure why this was just closed. Is there a yarn issue that was created?

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependency-issue Issue with another dependency used good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants