TypeError: Cannot read property 'get' of undefined
namename-123 opened this issue · comments
Hello, I'm trying to run this very basic piece of code but I'm always getting the error above TypeError: Cannot read property 'get' of undefined
, at the useProxy line. What's the problem here???
(async () => { const browser = await puppeteer.launch({headless: false}); var page = await browser.newPage(); const proxy = 'http://user:pass@host:port' await useProxy(page, proxy) await page.goto('http://api.myip.com'); await browser.close(); })();
This package used a method that was removed in v4.0.0
Update Puppeteer to the latest version.
@Cuadrix how would updating to the latest version of puppeteer fix this issue if the functionality was removed in v4.0.0?