node-warc icon indicating copy to clipboard operation
node-warc copied to clipboard

TypeError on Puppeteer example: Cannot read property 'Page' of undefined

Open mooniker opened this issue 5 years ago • 0 comments

Copying/pasting the Puppeteer example in the readme, replacing only the URL, and I get UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'Page' of undefined.

I've tried Puppeteer v1.2.x a d v2.0.0 with the same error. Pardon any Puppeteer ignorance on my end, but I don't think the library is exporting an Events object.

But const { Events } = require('chrome-remote-interface-extra') seems to do the trick and bring in the Events needed, not puppeteer.

mooniker avatar Oct 28 '19 20:10 mooniker