Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Can't run it w/input from stdin #11

Open
tenuki opened this issue Jun 1, 2019 · 0 comments
Open

Can't run it w/input from stdin #11

tenuki opened this issue Jun 1, 2019 · 0 comments
Labels

Comments

@tenuki
Copy link

tenuki commented Jun 1, 2019

Version 0.0.8

in win10:

type sample.md | node node_modules\markdown-html\index.js -i
path.js:28
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.extname (path.js:918:5)
    at module.exports (C:\Users\user\repos\tmp\md2pdf\node_modules\markdown-html\lib\compile.js:10:47)
    at Socket.<anonymous> (C:\Users\user\repos\tmp\md2pdf\node_modules\markdown-html\lib\stdio.js:8:9)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:246:13)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)

in linux

$ /home/user/node_modules/.bin/markdown-html -i
internal/validators.js:107
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:107:11)
    at Object.extname (path.js:1223:5)
    at module.exports (/home/user/node_modules/markdown-html/lib/compile.js:14:47)
    at Socket.<anonymous> (/home/user/node_modules/markdown-html/lib/stdio.js:8:9)
    at Socket.emit (events.js:200:13)
    at addChunk (_stream_readable.js:290:12)
    at readableAddChunk (_stream_readable.js:267:13)
    at Socket.Readable.push (_stream_readable.js:226:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)

any hint is welcome!

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

No branches or pull requests

2 participants