puppeteer-extra
puppeteer-extra copied to clipboard
TypeError with adblocker
I am running an AWS Lambda with a puppeteer, and I am getting an error as soon as I add the ad-blocker
const AdblockerPlugin = require('puppeteer-extra-plugin-adblocker')
puppeteer.use(AdblockerPlugin())
{
"errorType": "TypeError",
"errorMessage": "s is not a function",
"stack": [
"TypeError: s is not a function",
" at Object.<anonymous> (/var/task/index.js:140:31571)",
" at a (/var/task/index.js:1:794)",
" at Object.<anonymous> (/var/task/index.js:140:29752)",
" at a (/var/task/index.js:1:794)",
" at Object.<anonymous> (/var/task/index.js:140:29671)",
" at a (/var/task/index.js:1:794)",
" at /var/task/index.js:1:1593",
" at /var/task/index.js:1:1603",
" at /var/task/index.js:1:84",
" at Object.<anonymous> (/var/task/index.js:1:652)"
]
}
My dependencies "chrome-aws-lambda": "2.0.1", "iltorb": "2.4.4", "puppeteer-core": "2.0.0", "puppeteer-extra": "3.1.15", "puppeteer-extra-plugin-adblocker": "2.11.6", "puppeteer-extra-plugin-stealth": "^2.4.5", "request": "^2.88.2", "unlazy-loader": "^0.1.3"