-
-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TypeScript] Puppeteer-extra launching #46
Comments
Same issue here. |
I'm having error with puppeter extra on require or import And puppeteer-extra do not have @types |
Ditto! Wondering if its ts-config related but no luck yet |
Hey there, I'm refactoring the core parts of puppeteer-extra in TS so these issues should be obsolete soon :) |
Closing as duplicate of #21 |
If you get this error when using Webpack, here's how to fix it: webpack/webpack#6584
|
@KorrGoFF @leNicDev @ColeTownsend @gabsoft First class TypeScript support has just landed import puppeteer from 'puppeteer-extra'
import RecaptchaPlugin from 'puppeteer-extra-plugin-recaptcha'
import StealthPlugin from 'puppeteer-extra-plugin-stealth'
puppeteer.use(RecaptchaPlugin()).use(StealthPlugin())
puppeteer.launch({ headless: false }).then(async browser => {
const page = await browser.newPage()
await page.setViewport({ width: 800, height: 600 })
await page.goto('https://bot.sannysoft.com')
await page.waitFor(5000)
await page.screenshot({ path: 'stealth.png', fullPage: true })
await browser.close()
}) |
this package not working on typescript apps, a lot of lot bugs |
import puppeteer from 'puppeteer-extra'; puppeteer.use(StealthPlugin()).use(blockResourcesPlugin({blockedTypes: new Set(["image", "media", "font"])})) this code is not working. |
returns
Uncaught (in promise) TypeError: merge is not a function
at PuppeteerExtra.launch (index.js:95)
at _callee2$ (Controller.js:42)
at tryCatch (runtime.js:45)
at Generator.invoke [as _invoke] (runtime.js:271)
at Generator.prototype. [as next] (runtime.js:97)
at asyncGeneratorStep (Controller.js:7)
at _next (Controller.js:9)
at eval (Controller.js:9)
at new Promise ()
at Controller.eval (Controller.js:9)
What could be the problem?
dep:
"@babel/polyfill": "^7.4.4",
"@types/jquery": "^3.3.29",
"@types/puppeteer": "^1.12.4",
"@types/sizzle": "^2.3.2",
"debug": "^4.1.1",
"deepmerge": "^3.3.0",
"kind-of": "^6.0.2",
"ms": "^2.1.2",
"puppeteer-cluster": "^0.16.0",
"puppeteer-extra-plugin": "^3.0.4",
"puppeteer-extra-plugin-anonymize-ua": "^2.1.4"
The text was updated successfully, but these errors were encountered: