N0taN3rd / node-warc

Parse And Create Web ARChive (WARC) files with node.js
MIT License
93 stars 20 forks source link

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

Open mooniker opened 4 years ago

mooniker commented 4 years ago

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.