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

Issues when using inquirer JS (subscribe event) #57

Open
Truemedia opened this issue Aug 31, 2016 · 0 comments
Open

Issues when using inquirer JS (subscribe event) #57

Truemedia opened this issue Aug 31, 2016 · 0 comments

Comments

@Truemedia
Copy link

Hi there,
Iv'e been working on a slush generator for a while, and being go well for past year or so thanks 👍

The problem I have run into now is I am trying to take advantage of some of the reactive functionality of inquirer JS by doing observable questions.

inquirer.prompt( Rx.Observable.fromArray( questions ); ).process.subscribe(
  onEachAnswer,
  onError,
  onComplete
);

I seem to be running into this problem, which from what I know is a core part of gulp (3 at least)

node_modules/orchestrator/index.js:153
TypeError: Cannot read property 'subscribe' of undefined

This is the first time Iv'e attempted messing with async in inquirer so not sure how to get this working, and was suprised that I could not find anyone with similar situation already.

Any ideas anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant