Skip to content

Destructure the object, not the desired property#39

Open
dead-claudia wants to merge 1 commit intoHashnode:masterfrom
dead-claudia:patch-1
Open

Destructure the object, not the desired property#39
dead-claudia wants to merge 1 commit intoHashnode:masterfrom
dead-claudia:patch-1

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.

1 participant