DEV Community

Discussion on: How to scrape that web page with Node.js and puppeteer

Collapse
 
g0n_freecs profile image
Gon

This is a great and concisely well-explained article. I decided to try using the whole block within lines 13-28, and I keep getting errors of

< (node:65901) UnhandledPromiseRejectionWarning: Error: Evaluation failed: ReferenceError: reject is not defined

How could I resolve this error?

Collapse
 
napolux profile image
Francesco Napoletano

Well, the puppeteer.launch().then(async browser => { etc... is a promise itself, so the reject is there.

Just tried the code and it still works.