Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when target dir is not existing #1

Open
ColCh opened this issue Feb 12, 2016 · 0 comments
Open

Error when target dir is not existing #1

ColCh opened this issue Feb 12, 2016 · 0 comments

Comments

@ColCh
Copy link
Member

ColCh commented Feb 12, 2016

This error is unhelpful

> plato -d plato -r --eslint .eslintrc src

/my-project/node_modules/plato/lib/util.js:15
  var lastSlash = files[0].lastIndexOf(path.sep);
                          ^

TypeError: Cannot read property 'lastIndexOf' of undefined
    at Object.exports.findCommonBase (/my-project/node_modules/plato/lib/util.js:15:27)
    at Object.exports.inspect (/my-project/node_modules/plato/lib/plato.js:87:29)
    at Object.exports.exec (/my-project/node_modules/plato/lib/cli.js:54:9)
    at Object.<anonymous> (/my-project/node_modules/plato/bin/plato:19:5)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:140:18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant