recently tried to run pkg with puppeteer stealth plugin however its just giving me the error with "A plugin listed 'puppeteer-extra-plugin-stealth/evasions/chrome.runtime' as dependency,
which is currently missing. Please install it:"
I fix this by importing the plugins that stealth are referencing 1 by 1 (they are 11)
Or you can change tool to create exe, nexe doesn't give this error
@Dam998 add this into your package.json
"pkg": {
"assets": "node_modules/puppeteer-extra-plugin-stealth/**/*.*"
}
Right @DimitriCunev
I didn't try it but it can work
However in the end I changed from pkg to nexe because pkg have problem with some es6 syntax and I have always to use await eval(``es6 function``) and I don't like it
I fix this by importing the plugins that stealth are referencing 1 by 1 (they are 11)
Or you can change tool to create exe, nexe doesn't give this error
Hi, can you share how you import it?
I have this problem as well but for serverless.
2020-09-25T17:14:00.362Z 80e39902-c590-4d9d-aa95-a6350f029074 WARN
A plugin listed 'puppeteer-extra-plugin-stealth/evasions/chrome.app' as dependency,
which is currently missing. Please install it:
yarn add puppeteer-extra-plugin-stealth
Note: You don't need to require the plugin yourself,
unless you want to modify it's default settings.
2020-09-25T17:14:00.364Z 80e39902-c590-4d9d-aa95-a6350f029074 ERROR Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: Cannot find module 'puppeteer-extra-plugin-stealth/evasions/chrome.app'\nRequire stack:\n- /var/task/node_modules/puppeteer-extra/dist/index.cjs.js\n- /var/task/libbitch/crap.js\n- /var/task/api/index.js\n- /var/task/___now_launcher.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js","reason":{"errorType":"Error","errorMessage":"Cannot find module 'puppeteer-extra-plugin-stealth/evasions/chrome.app'\nRequire stack:\n- /var/task/node_modules/puppeteer-extra/dist/index.cjs.js\n- /var/task/libbitch/crap.js\n- /var/task/api/index.js\n- /var/task/___now_launcher.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js","code":"MODULE_NOT_FOUND","requireStack":["/var/task/node_modules/puppeteer-extra/dist/index.cjs.js","/var/task/libbitch/crap.js","/var/task/api/index.js","/var/task/___now_launcher.js","/var/runtime/UserFunction.js","/var/runtime/index.js"],"stack":["Error: Cannot find module 'puppeteer-extra-plugin-stealth/evasions/chrome.app'","Require stack:","- /var/task/node_modules/puppeteer-extra/dist/index.cjs.js","- /var/task/libbitch/crap.js","- /var/task/api/index.js","- /var/task/___now_launcher.js","- /var/runtime/UserFunction.js","- /var/runtime/index.js"," at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)"," at Function.Module._load (internal/modules/cjs/loader.js:841:27)"," at Module.require (internal/modules/cjs/loader.js:1025:19)"," at require (internal/modules/cjs/helpers.js:72:18)"," at PuppeteerExtra.resolvePluginDependencies (/var/task/node_modules/puppeteer-extra/dist/index.cjs.js:300:23)"," at PuppeteerExtra.launch (/var/task/node_modules/puppeteer-extra/dist/index.cjs.js:118:14)"," at hibp (/var/task/libbitch/crap.js:20:37)"," at processTicksAndRejections (internal/process/task_queues.js:97:5)"," at async module.exports (/var/task/api/index.js:5:21)"," at async Server.(/var/task/___now_helpers.js:813:13)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: Cannot find module 'puppeteer-extra-plugin-stealth/evasions/chrome.app'","Require stack:","- /var/task/node_modules/puppeteer-extra/dist/index.cjs.js","- /var/task/libbitch/crap.js","- /var/task/api/index.js","- /var/task/___now_launcher.js","- /var/runtime/UserFunction.js","- /var/runtime/index.js"," at process. (/var/runtime/index.js:35:15)"," at process.emit (events.js:327:22)"," at processPromiseRejections (internal/process/promises.js:209:33)"," at processTicksAndRejections (internal/process/task_queues.js:98:32)"]}
Unknown application error occurred
"assets": "node_modules/puppeteer-extra-plugin-stealth/*/.*"
Thank you soo much
"assets": "node_modules/puppeteer-extra-plugin-stealth/**/_._"
Thank you soo much
It doesn't work for me :(
Most helpful comment
@Dam998 add this into your package.json