When I invoke code:
const urlsArray = [] // more than 10 items
let imagePromises = []
urlsArray.forEach(item => {
const imagePath = `./tmp/${item.id}.jpg`
const captureWebsitePromise = captureWebsite.file(item.url, imagePath, {
width: 1280,
height: 800,
type: "jpeg",
overwrite: true
})
imagePromises.push(captureWebsitePromise)
}
})
Promise.all(imagePromises).then(function(imageResult) {
})
I have these errors:
(node:9535) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(node:9535) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(node:9535) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGTERM listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(node:9535) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGHUP listeners added to [process]. Use emitter.setMaxListeners() to increase limit
Do you have an idea how to capture more than 10 pages using your module?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too