madhums / madhums/node-genem

error on creating controller

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
54
Forks
5
PR merge metrics
No merged PRs in 30d

Description

boilerplate > genem controller index
   create : ./app/controllers/
   create : ./app/controllers/index.js

/usr/local/share/npm/lib/node_modules/genem/node_modules/inflection/lib/inflection.js:173
        var ignore = ( this.indexOf( skip, str.toLowerCase()) > -1 );
                                               ^
TypeError: Cannot call method 'toLowerCase' of null
    at Object.inflector._apply_rules (/usr/local/share/npm/lib/node_modules/genem/node_modules/inflection/lib/inflection.js:173:48)
    at Object.inflector.pluralize (/usr/local/share/npm/lib/node_modules/genem/node_modules/inflection/lib/inflection.js:249:19)
    at controller (/usr/local/share/npm/lib/node_modules/genem/lib/genem.js:439:18)
    at Object.oncomplete (fs.js:297:15)
boilerplate > 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce genem controller index and inspect lib/genem.js around the controller entry point at line 439, where the stack trace calls inflection.pluralize. Check why a null value reaches inflection/lib/inflection.js; done means the controller command completes without the TypeError and creates the expected controller output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.