Getting 'Error: item doesn't belong to list' on a certain web page
Hello,
I'm trying to use the CLI to generate a PDF of this web page: https://eli.li/space-witch. Whenever I try, I get the following error:
❯ pagedjs-cli https://eli.li/space-witch -d -o space-witch.pdf
◴ Loading: https://eli.li/space-witchnode:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
Error: item doesn't belong to list
at #evaluate (file:///Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js:249:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (file:///Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js:146:16)
at async Printer.render (file:///Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/src/printer.js:202:4)
at async Printer.preview (file:///Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/src/printer.js:352:14)
at async file:///Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/src/cli.js:170:3
at parse (/Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/dist/browser.js:26475:8)
at rules (/Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/dist/browser.js:26529:11)
at walk (/Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/dist/browser.js:11598:9)
at walkNode (/Users/ihalvorson/.local/share/mise/installs/node/21.5.0/lib/node_modules/pagedjs-cli/dist/browser.js:11539:41)
Node.js v21.5.0
I'm not a nodejs expert, so I'm not really sure where to start with troubleshooting or debugging this kind of issue. Any suggestions or ideas on what might be going on?