Crashes with UnhandledPromiseRejectionWarning
I tried to run pagedjs-cli on a very simple HTML foo.html The tool fails with the following error messages:
(node:24436) UnhandledPromiseRejectionWarning: Error: Loading script from http://localhost:54519/polyfill/paged.polyfill.js failed
at DOMWorld.addScriptTag (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\DOMWorld.js:230:15)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
-- ASYNC --
at Frame.<anonymous> (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\helper.js:108:27)
at Page.addScriptTag (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\Page.js:405:29)
at Page.<anonymous> (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\helper.js:109:23)
at Printer.render (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\index.js:96:16)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:24436) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:24436) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:24436) UnhandledPromiseRejectionWarning: Error: Page crashed!
at Page._onTargetCrashed (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\Page.js:185:24)
at CDPSession.Page.client.on.event (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\Page.js:140:56)
at CDPSession.emit (events.js:182:13)
at CDPSession._onMessage (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\Connection.js:200:12)
at Connection._onMessage (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\Connection.js:112:17)
at WebSocketTransport._ws.addEventListener.event (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\puppeteer\lib\WebSocketTransport.js:41:24)
at WebSocket.onMessage (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:182:13)
at Receiver.receiverOnMessage (C:\Users\yedema21\AppData\Local\node-v11.1.0-win-x64\node_modules\pagedjs-cli\node_modules\ws\lib\websocket.js:792:20)
at Receiver.emit (events.js:182:13)
(node:24436) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
ERROR: The process with PID 21044 (child process of PID 24436) could not be terminated.
Reason: There is no running instance of the task.
I'm using Node version 11.1.0 and run pagedjs-cli version 0.0.3 (from npm install)