madhums / node-genem

(not maintained) Opinionated MVC generator for NodeJS that uses express and mongoose.
MIT License
54 stars 5 forks source link

error on creating controller #3

Open danielmahon opened 11 years ago

danielmahon commented 11 years ago
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 > 
sartymlg commented 11 years ago

I have the same problem