The "file" argument must be of type string. Received type object
See original GitHub issueHi,
When I run markdown-pdf README.md
I get the following error:
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
at validateString (internal/validators.js:125:11)
at normalizeSpawnArguments (child_process.js:414:3)
at spawn (child_process.js:553:16)
at Object.execFile (child_process.js:224:15)
at WriteStream.<anonymous> (/usr/local/lib/node_modules/markdown-pdf/index.js:117:22)
at WriteStream.emit (events.js:202:15)
at finishMaybe (_stream_writable.js:646:14)
at stream._final (_stream_writable.js:624:5)
at WriteStream._final (internal/fs/streams.js:270:3)
at callFinal (_stream_writable.js:617:10)
Can anyone suggest any solution?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:48
- Comments:21
Top Results From Across the Web
The "file" argument must be of type string. Received type ...
Trying to deploy my React app with gh-pages but got this error message : The "file" argument must be of type string. Received...
Read more >typeerror [err_invalid_arg_type]: the "file" argument must be of ...
The error message means that a method of the path module (like path.join ) expects one of its arguments to be a string...
Read more >The "path" argument must be of type string. Received - YouTube
JavaScript : TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting ...
Read more >Pipelines fail randomly with ##[error]TypeError ...
Pipelines fail randomly with ##[error]TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined.
Read more >The "path" argument must be of type string. Received type object
When I try to run radzen project inside radzen application I get this error:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I get the same with node 11.11.0. Reinstall without
--ignore-scripts
option and worked fine.better to do: