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

Destructure the object, not the desired property #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dead-claudia
Copy link

I got the following error:

Usage: merng [options] <generator> [args]

Generate components, routes, controllers, models using mern generator

Options:
  -h, --help  output usage information
Available Generators
____________________

$PREFIX/lib/node_modules/mern-cli/lib/commands/generate.js:43
    blueprints.forEach(function (b) {
               ^

TypeError: Cannot read property 'forEach' of undefined
    at Command.<anonymous> ($PREFIX/lib/node_modules/mern-cli/lib/commands/generate.js:43:16)
    at Command.emit (events.js:182:13)
    at Command.outputHelp ($PREFIX/lib/node_modules/mern-cli/node_modules/commander/index.js:1142:8)
    at Command.help ($PREFIX/lib/node_modules/mern-cli/node_modules/commander/index.js:1152:8)
    at Object.<anonymous> ($PREFIX/lib/node_modules/mern-cli/lib/commands/generate.js:49:25)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)

This fixes it.

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

Successfully merging this pull request may close these issues.

None yet

1 participant