This topic was automatically generated from Slack. You can find the original thread here.
Hello , a week ago I was able to use Puppeteer like this: import puppeteer from ‘puppeteer’;
But now I receive this error: Cannot require puppeteer. puppeteer is supported via a custom Pipedream package. Please see the docs: Browser Automation with Node.js
Hello , yes I would like to connect to a remote chrome browser that has more capacities (Captcha unlocking, headful browser and other options). I tried the workflow last week and it was working fine, but I think that you pushed a new version that prevents using regular Puppeteer
Got it thanks, we did push this update and I’ll share with the team. At the very least I believe we can just expose the connect method for you in our wrapper package
Please let me know when you do the change because I started developing a cloud function outside pipedream and then sending an http request, but the idea is to use pipedream for the whole workflow
Puppeteer also publishes a puppeteer-core package, which can be used to connect to a remote browser. As a workaround, does that work for your use case?
that’s great, yeah I’m glad Jacob suggested that so you’re unblocked. We’re also planning to clarify this in our docs / throw a more subtle help message vs. the error blocking you from using puppeteer directly.
Jacob also noted to me that puppeteer-core is probably better anyway since it doesn’t contain the local browser (and you don’t need it since you’re just connecting remotely), so the workflow will likely be faster to cold start too