Apify Discord Mirror

Updated last year

Adding puppeteer dependency in crawlee

At a glance

The community member is using Crawlee's Puppeteer crawler and has imported Crawlee via their package.json. They are unsure if they need to also import Puppeteer separately, as Puppeteer is listed as an optional peer dependency in Crawlee. The community member's concern is that Puppeteer gets updated frequently, and they have been stuck with version 21.1.x, and they would prefer if bumping Crawlee would also update Puppeteer to the latest version. Another community member suggests that if the actor is deployed to the Apify cloud, Puppeteer should be included without further action, otherwise the community member should check their app's package.json.

Useful resources
Hi, I'm using Crawlee's Puppeteer crawler

I've imported crawlee via package.json like

Plain Text
{
   "crawlee": "^3.5.4"
}


Shall I be importing puppeteer in via my package.json as well?

I see puppeteer in crawlee's peer dependency but as optional https://www.npmjs.com/package/crawlee?activeTab=code

Issue is that puppeteer gets bumped very often with bug fixes and I've been stuck with puppeteer 21.1.x.

Ideal expectation is that I just import Crawlee and bumping Crawlee bumps puppeteer as well as per its requirements/support.


Reference https://github.com/apify/crawlee/discussions/2101
A
A
2 comments
just advanced to level 1! Thanks for your contributions! πŸŽ‰
If you deploying actor to apify cloud it should be included without further actions, otherwise check your app package.json
Add a reply
Sign up and join the conversation on Discord