UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'forEach' of undefined
https://github.com/zopyx/print-css-rocks/tree/vivliostyle/lessons/lesson-account-statement
make pagedjs
timeout --foreground -s 9 10 pagedjs-cli -i index.html -o pagedjs.pdf
◶ Loading: index.html(node:2204187) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'forEach' of undefined
at TargetCounters.onContent (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:29335:20)
at /usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:360:26
at Array.forEach (<anonymous>)
at Hook.trigger (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:359:15)
at Object.enter (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:25300:30)
at Object.<anonymous> (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:10544:17)
at List.walkNode (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:10694:20)
at List.each (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:2885:13)
at Object.Value (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:10639:30)
at walkNode (/usr/local/lib/node_modules/pagedjs/dist/paged.polyfill.js:10697:38)
at ExecutionContext._evaluateInternal (/usr/local/lib/node_modules/pagedjs-cli/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async ExecutionContext.evaluate (/usr/local/lib/node_modules/pagedjs-cli/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)
at async Printer.render (/usr/local/lib/node_modules/pagedjs-cli/src/printer.js:191:5)
at async Printer.pdf (/usr/local/lib/node_modules/pagedjs-cli/src/printer.js:297:16)
at async /usr/local/lib/node_modules/pagedjs-cli/bin/paged:162:14
(node:2204187) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2204187) [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.
◴ Loading: index.htmlmake: [../Makefile:17: pagedjs] Error 124 (ignored)