error on creating controller
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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