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

Unable to use sub-generator #249

Open
mikero8 opened this issue Sep 7, 2016 · 4 comments
Open

Unable to use sub-generator #249

mikero8 opened this issue Sep 7, 2016 · 4 comments

Comments

@mikero8
Copy link

mikero8 commented Sep 7, 2016

I was not able to run the sub-generator:

yo meanjs:express-model <model-name>

It prompts the question, and I was unable to see any controller name. And I was running in the root directory of my project. I tried this in Mac/Linux(Ubuntu)/Windows7

? Which module does this controller belongs to?

I'm using Node v4.5.0

@ilanbiala
Copy link
Member

@mikeroskywalker can you post the terminal output?

@mikero8
Copy link
Author

mikero8 commented Sep 12, 2016

@ilanbiala

$ yo meanjs:express-model test
? Which module does this controller belongs to? 


readline.js:930
            throw err;
            ^

TypeError: Cannot read property 'value' of undefined
    at Prompt.getCurrentValue (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/lib/prompts/list.js:123:51)
    at tryCatcher (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:63:31)
    at InnerObserver.next (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:5407:43)
    at InnerObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:1762:31)
    at InnerObserver.tryCatcher (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:63:31)
    at AutoDetachObserverPrototype.next (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:5883:51)
    at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:1762:31)
    at TakeObserver.next (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:5646:17)
    at TakeObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:1762:31)
    at TakeObserver.tryCatcher (/usr/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/dist/rx.js:63:31)

I was asked to use arrow key to choose the module but I was not able see anything on the terminal.

@ilanbiala
Copy link
Member

@mikeroskywalker which version of the generator are you using? Have you tried just running the standard generator?

@UCDaHacker
Copy link

I have that exact same issue. Looks like the new yeoman generates into a new directory structure. What's the standard generator?

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

3 participants