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
My code does nothing and after a while leaves the following error:
(node:67808) UnhandledPromiseRejectionWarning: Error: Unable to get browser page
at Worker.<anonymous> (G:\ONEDRIVE\\{DIRECTORY}\School\html-to-image-test\node_modules\puppeteer-cluster\dist\Worker.js:41:31)
at Generator.next (<anonymous>)
at fulfilled (G:\ONEDRIVE\{DIRECTORY}\School\html-to-image-test\node_modules\puppeteer-cluster\dist\Worker.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:67808) 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:67808) [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.
I tried creating a completely fresh project and only put in the following code in my index.js. This code is traight from the readme but still produced the exact same error. Weirdly, my code worked perfectly fine yesterday.
const nodeHtmlToImage = require('node-html-to-image')
nodeHtmlToImage({
output: './image.png',
html: '<html><body>Hello world!</body></html>'
})
.then(() => console.log('The image was created successfully!'))
The text was updated successfully, but these errors were encountered:
My code does nothing and after a while leaves the following error:
I tried creating a completely fresh project and only put in the following code in my index.js. This code is traight from the readme but still produced the exact same error. Weirdly, my code worked perfectly fine yesterday.
The text was updated successfully, but these errors were encountered: