wesleytodd / YeoPress

A Yeoman generator for WordPress
Other
1.08k stars 163 forks source link

Plugin install error: TypeError: Object ... has no method 'split' #113

Closed hilja closed 9 years ago

hilja commented 10 years ago

When trying to install plugin with:

$ yo wordpress:plugin

Then used this list: super-cpt, json-rest-api, and yeopress returns following error:

/usr/local/lib/node_modules/generator-wordpress/plugin/index.js:78
                    items = input.split(',');
                                  ^
TypeError: Object super-cpt,json-rest-api has no method 'split'
    at Object.me.prompt.filter (/usr/local/lib/node_modules/generator-wordpress/plugin/index.js:78:20)
    at Object.utils.runAsync (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/inquirer/lib/utils/utils.js:34:22)
    at Prompt.filter (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/inquirer/lib/prompts/base.js:149:9)
    at Prompt.done (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/inquirer/lib/prompts/base.js:71:10)
    at Prompt.<anonymous> (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/inquirer/lib/prompts/input.js:86:14)
    at Object.utils.runAsync (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/inquirer/lib/utils/utils.js:42:5)
    at Prompt.filter (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/inquirer/lib/prompts/base.js:149:9)
    at Prompt.<anonymous> (/usr/local/li

Node: v0.10.26 Yeoman: 1.2.1 Yeopress: v1.4.3 OSX: 10.9.4

wesleytodd commented 9 years ago

This is a duplicate of #112. Thanks for the detailed report, this should be easy to fix since I now have a line number. Closing only because of the duplicate.

hilja commented 9 years ago

Oops, did not notice that. Thanks :+1: