We're a place where coders share, stay up-to-date and grow their careers.
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?
Well, the puppeteer.launch().then(async browser => { etc... is a promise itself, so the reject is there.
puppeteer.launch().then(async browser => {
Just tried the code and it still works.
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?
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.