puppeteer-extra
puppeteer-extra copied to clipboard
Usage with `puppeteer-core`
At node_modules/puppeteer-extra/dist/index.d.ts:2
:
import { PuppeteerNode } from 'puppeteer';
which causes error when only using puppeteer-core
.
I'm gonna refactor the way typings are handled internally pretty soon, taking learnings from playwright-extra
.
For now a workaround is to use the regular puppeteer package and skip browser downloads (that's the only difference between these packages, btw):
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
![image](https://user-images.githubusercontent.com/1368633/179056071-501cabac-8eb1-4ade-93c5-b4b5ebcac9f3.png)
https://github.com/puppeteer/puppeteer#puppeteer-core
https://github.com/berstend/puppeteer-extra/issues/262 Still waiting for this :/
Starting on puppeteer 19, PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true seems to be ignored, so it would be quite handy to be able to use puppeteer-core with puppeteer-extra
https://github.com/berstend/puppeteer-extra/issues/800