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.
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.
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
Hey Ryan. What鈥檚 the node version you鈥檙e running on?
10.9.0.
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.
@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.
@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?
Using npm instead of yarn solved it for me! Thanks!
Sounds good to me, thank you!
Not sure why this was just closed. Is there a yarn issue that was created?
Most helpful comment
Not sure why this was just closed. Is there a yarn issue that was created?