You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rendering...
Error: Evaluation failed: DOMException: Failed to execute 'querySelector' on 'Document': '5000' is not a valid selector.
at predicate (eval at waitForPredicatePageFunction (:2:21), :6:20)
at eval (eval at waitForPredicatePageFunction (:2:21), :25:7)
at pollMutation (puppeteer_evaluation_script:17:31)
at waitForPredicatePageFunction (puppeteer_evaluation_script:9:18)
at ExecutionContext._evaluateInternal (/Users/.../node_modules/puppeteer/lib/ExecutionContext.js:122:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async WaitTask.rerun (/Users/.../node_modules/puppeteer/lib/DOMWorld.js:570:17)
-- ASYNC --
at ExecutionContext. (/Users/.../node_modules/puppeteer/lib/helper.js:111:15)
at WaitTask.rerun (/Users/.../node_modules/puppeteer/lib/DOMWorld.js:570:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
-- ASYNC --
at Frame. (/Users/.../node_modules/puppeteer/lib/helper.js:111:15)
at Frame.waitFor (/Users/.../node_modules/puppeteer/lib/FrameManager.js:612:19)
at Page.waitFor (/Users/.../node_modules/puppeteer/lib/Page.js:1113:29)
at Object.generatePDF (/Users/.../node_modules/mr-pdf/lib/utils.js:23:32)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
`
The text was updated successfully, but these errors were encountered:
Running
mr-pdf --initialDocURLs='http://localhost:3000/docs/next' --waitForRender=5000 ....
causes the following error because the parameter is considered to be string in utils at the end in all cases, which expects it to be a selector:
`
Retrieving html from http://localhost:3000/docs/next
Rendering...
Error: Evaluation failed: DOMException: Failed to execute 'querySelector' on 'Document': '5000' is not a valid selector.
at predicate (eval at waitForPredicatePageFunction (:2:21), :6:20)
at eval (eval at waitForPredicatePageFunction (:2:21), :25:7)
at pollMutation (puppeteer_evaluation_script:17:31)
at waitForPredicatePageFunction (puppeteer_evaluation_script:9:18)
at ExecutionContext._evaluateInternal (/Users/.../node_modules/puppeteer/lib/ExecutionContext.js:122:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async WaitTask.rerun (/Users/.../node_modules/puppeteer/lib/DOMWorld.js:570:17)
-- ASYNC --
at ExecutionContext. (/Users/.../node_modules/puppeteer/lib/helper.js:111:15)
at WaitTask.rerun (/Users/.../node_modules/puppeteer/lib/DOMWorld.js:570:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
-- ASYNC --
at Frame. (/Users/.../node_modules/puppeteer/lib/helper.js:111:15)
at Frame.waitFor (/Users/.../node_modules/puppeteer/lib/FrameManager.js:612:19)
at Page.waitFor (/Users/.../node_modules/puppeteer/lib/Page.js:1113:29)
at Object.generatePDF (/Users/.../node_modules/mr-pdf/lib/utils.js:23:32)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
`
The text was updated successfully, but these errors were encountered: