Skip to content

Issues when using inquirer JS (subscribe event) #57

@Truemedia

Description

@Truemedia

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions