puppeteer-extra icon indicating copy to clipboard operation
puppeteer-extra copied to clipboard

TypeError with adblocker

Open ioannist opened this issue 3 years ago • 0 comments

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"

ioannist avatar Sep 20 '20 07:09 ioannist