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

Fix as cli failed #25

Merged
merged 1 commit into from
Sep 7, 2018
Merged

Fix as cli failed #25

merged 1 commit into from
Sep 7, 2018

Conversation

abetomo
Copy link
Contributor

@abetomo abetomo commented Sep 5, 2018

The following is an error.

path.js:39
    throw new ERR_INVALID_ARG_TYPE('path', 'string', path);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at assertPath (path.js:39:11)
    at Object.resolve (path.js:1090:7)
    at Command.<anonymous> (/home/vagrant/work/standard-markdown/cli.js:34:28)
    at Command.listener (/home/vagrant/work/standard-markdown/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:182:13)
    at Command.parseArgs (/home/vagrant/work/standard-markdown/node_modules/commander/index.js:665:12)
    at Command.parse (/home/vagrant/work/standard-markdown/node_modules/commander/index.js:474:21)
    at Object.<anonymous> (/home/vagrant/work/standard-markdown/cli.js:42:4)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

fixes: #24

The following is an error.
```
path.js:39
    throw new ERR_INVALID_ARG_TYPE('path', 'string', path);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at assertPath (path.js:39:11)
    at Object.resolve (path.js:1090:7)
    at Command.<anonymous> (/home/vagrant/work/standard-markdown/cli.js:34:28)
    at Command.listener (/home/vagrant/work/standard-markdown/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:182:13)
    at Command.parseArgs (/home/vagrant/work/standard-markdown/node_modules/commander/index.js:665:12)
    at Command.parse (/home/vagrant/work/standard-markdown/node_modules/commander/index.js:474:21)
    at Object.<anonymous> (/home/vagrant/work/standard-markdown/cli.js:42:4)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
```
abetomo added a commit to abetomo/node-fs-extra that referenced this pull request Sep 6, 2018
If you do not specify an argument, the `standard-markdown` will fail.
zeke/standard-markdown#25
This is an interim fix.
@zeke zeke merged commit 2738ffa into zeke:master Sep 7, 2018
@zeke
Copy link
Owner

zeke commented Sep 7, 2018

Tnanks!

@abetomo abetomo deleted the fix_pathjs_error branch September 7, 2018 22:02
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

Successfully merging this pull request may close these issues.

Getting "Path must be a string. Received undefined" errors
2 participants