I am trying to export a presentation to PDF for course notes - updated from the same export this time last year!
However, this time I am having a problem with file argument
. At first, the child_process.js
was throwing the error, but after uninstalling node and sozi-export and starting again, this time using NodeSource distributions, I now get the following error:
internal/validators.js:125
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:402:3)
at spawn (child_process.js:541:16)
at Object.exports.exec (/home/mcdonaghe/sozi-export/node_modules/phantomjs-prebuilt/lib/phantomjs.js:72:10)
at Object.exports.convertToPDF (/home/mcdonaghe/sozi-export/lib/index.js:40:21)
at Object.<anonymous> (/home/mcdonaghe/sozi-export/cli/sozi-to-pdf.js:38:12)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
I have tried with different presentations (the error above is with one I downloaded from the examples here).
I don't know what to do next, and not being able to export to pdf for the course notes has left me in a bit of a pickle!
Grateful for any help available!
Kind regards
Ed