{"action":"opened","issue":{"url":"https://api.github.com/repos/es-analysis/plato/issues/205","repository_url":"https://api.github.com/repos/es-analysis/plato","labels_url":"https://api.github.com/repos/es-analysis/plato/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/es-analysis/plato/issues/205/comments","events_url":"https://api.github.com/repos/es-analysis/plato/issues/205/events","html_url":"https://github.com/es-analysis/plato/issues/205","id":193374169,"number":205,"title":"Error running with node v6.9.1; Cannot read property 'lastIndexOf'","user":{"login":"ivanwills","id":83195,"avatar_url":"https://avatars.githubusercontent.com/u/83195?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanwills","html_url":"https://github.com/ivanwills","followers_url":"https://api.github.com/users/ivanwills/followers","following_url":"https://api.github.com/users/ivanwills/following{/other_user}","gists_url":"https://api.github.com/users/ivanwills/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanwills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanwills/subscriptions","organizations_url":"https://api.github.com/users/ivanwills/orgs","repos_url":"https://api.github.com/users/ivanwills/repos","events_url":"https://api.github.com/users/ivanwills/events{/privacy}","received_events_url":"https://api.github.com/users/ivanwills/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-04T20:41:37Z","updated_at":"2016-12-04T20:41:37Z","closed_at":null,"body":"Hi,\r\n\r\nWhen I try running plato with node v6.9.1 (LTS) I get the following error (no errors with node v4.4.4 though)\r\n\r\n```shell\r\n$ plato --dir .\r\n/home/dev/.nvm/v6.9.1/lib/node_modules/plato/lib/util.js:15\r\n  var lastSlash = files[0].lastIndexOf(path.sep);\r\n                          ^\r\n\r\nTypeError: Cannot read property 'lastIndexOf' of undefined\r\n    at Object.exports.findCommonBase (/home/dev/.nvm/v6.9.1/lib/node_modules/plato/lib/util.js:15:27)\r\n    at Object.exports.inspect (/home/dev/.nvm/v6.9.1/lib/node_modules/plato/lib/plato.js:87:29)\r\n    at Object.exports.exec (/home/dev/.nvm/v6.9.1/lib/node_modules/plato/lib/cli.js:53:9)\r\n    at Object.<anonymous> (/home/dev/.nvm/v6.9.1/lib/node_modules/plato/bin/plato:19:5)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n    at Module.runMain (module.js:604:10)\r\n```"}}
{"actor":{"display_login":"ivanwills"}}