berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.27k stars 735 forks source link

[Bug] Typescript error on the absence of playwright-core module #682

Open amiralis1365 opened 2 years ago

amiralis1365 commented 2 years ago

Throws Typescript error when you install it with puppeteer and playwright-core is absent on version 3.6.6. Cannot find module 'playwright-core' or its corresponding type declarations.

berstend commented 2 years ago

@amiralis1365 cannot reproduce, what's your TS version and config?

Also check the skipLibCheck option

djereg commented 2 years ago

I got this error message too. Using the puppeteer-extra-plugin-recaptcha package.

melnikovic commented 8 months ago

Had the same issue with using default tsconfig.json in Firebase functions. Setting skipLibCheck to false as @berstend suggested helped.

TheoOliveira commented 3 months ago

that didn't work for me.
Using node 19.0.0, typescript and puppeteer ^21.9.0