DrelezTM / StickerWhatsAppBOT

Sticker WhatsApp BOT by DrelezTM
https://github.com/DrelezTM/StickerWhatsAppBOT
MIT License
55 stars 35 forks source link

Error #1

Closed bkzutr90 closed 1 year ago

bkzutr90 commented 1 year ago

~/StickerWhatsAppBOT# npm start

stickerbot@1.2.0 start node .

[14:20:39] Scan the QR below : ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █ ▄▄▄▄▄ █▄ ▀ █▀████▄▀ ▀ █ ▀█▄█ █▄▀▄ ▀██ ▄▄▄▄▄ █ █ █ █ █ ▄▄ ▀▀▄█ ▀ ▄█▄▄ ▄▀▀▄█▄▄ ▄██▄ █▀██▀▀▄▀█ █ █ █ █ █▄▄▄█ █▄ █ █ ▄██▀ ▄ █ ▄▄▄ ▀▀▄▄ █▀ ██▄ ███ █▄▄▄█ █ █▄▄▄▄▄▄▄█▄▀ ▀▄█▄█▄█ █ █ ▀ █▄█ ▀ ▀▄█ ▀ ▀ ▀▄█ █ █▄▄▄▄▄▄▄█ █ ▄▄▄█▀▄▀ ██▄█ ▀█▀██ ▀▄ ▄▄▄▀▀ ▀▄▄ █ ▄▄ ▀▀ ▄ █▀ ▄▄█ █ ██▄▀ █▄▀▀▄▄█ █ ▀▄ █▀▄▀▀ ███▄█▄ ▀ █████▀▀▀ ▄ █▄▄▀█▄▄███ █▀█▄█ █▄ █▄▄█ ▄▀ ▄ ▄ █▀ ▄▀▀█ ▄▄ █ █▄▄ ▀▀▄▄ ▀ ▄▄▄▀ █ █▀▄▀▀▀▀▄██▀▄██ █▄▄ █▀█ █ ▀█ █▄▄█▀ ▄█ ▀█▄▄▄▄ ▄█▄▀▄▀ █ █▀ ▀▀█ ▄▀▄▀ ██▄▄▀▀█ █▄▀▀▀█ █▄▀█▄▄▀▀▀▀█▄▄▀ ▄▄█ ▀▀█▀ █ █ █▄ ▄ ▀ ▄▄▄▄█▄▀█ ███▄▀ ▄█ ▀▀█ ▄▄█▄ ▄ █▀██▀▀█ █▀ ▀██ █ ▀▀█ ▄ ▄ ▄▀▄▀▀██▄██▄ ▀▀▄▄▄█ ██▄█ █ ▄█▄ ▀▀█▄▄█▀█ █▄█ █ █▄▀ █▄▀▀▄▀▄▄ ▀▄▄ █ █▀▀█▄▄█▄▀ █▀█▄▀▀▄▄█ █▀█ ▄ ▀█▄██ ██ █▄██▀ ▄▄▄ ▀█ █▄ ▀ ▀ ▀█ ▄▄▄ █▄▄█▀█ ▄▀ ▀▀▄▄▀ ▄▄▄ ▀▀▀▄█ ██▀ ▄ █▄█ ▀██ ▄█▀█ ██▄█ █▄█ █▀▀▀ ▀█ ▄█ █▀█ █▄█ ▀▄ ▄█ █▄▀▀▀▄ ▄ ▄▄██▄ ▀▀ ▀█▄▄█ ▄▄▄▄▄▄ ▀▀▀▀█ ▀▀█ ▄▄ ▄▀▄███ █▀ ███ ▄█ ▄▀ ▀▀▄▀█ ▄▀█▀▀ ▄ ▄▄▀▀█ ▄▄█ ▀ ▀▄███▀▀█▄▀▄██ █▀ █▄▄▄▄█▄▄█▄ █ ▄▀█▀█▄ ██▀▀▀ ▄█▀█ ▀▀██▄ ▀▄▀▀▀█ ▀▄▀██ █▄ ▄▀▀▄ ▀▀▀▄█▄▀██▀▀█▄ ▄ ▀▀█ █ ▀ ▄█▄▀ ▀▀▀▀█▄██ ██ ▄█▀█▄▀▄▀▄▄▀ ▀▀█ ▄ ▀▀ ▄█▀▀▄▄▄▀▀█▄▄▀▀▀▀▄▄▀▀█▄██▄▄ ▀█ █ █▄▀ ▄▄▄█▄▄█▀█ ▄▀ ▀█▀█▀ ███▄▀▀█ ▀ ▄▄█▀ ▀▄▄█▀ ▄█ ██▄█ ██ ▀▀▀▄▄█▄▀ ██ █▀█▄█▄█ █ ▄▄▀ ▄ ▀▀█▀▄█▄█ ██▄▄▀█▄▄▄▀██ █▄ ▀▄▄▄▄ ▄▀▀█ █▀ ▄▄ █▀▀▀█ ▄ ▄█▀███▀ ▄▄▀█▄██▀█▀▀▄█ ██ ████▄██▄█ ▄▄▄█▄█▄▄█ █ ▀ ▄▄▄ ▀ ██▄ █ ▄▄▄█▀▄ ▄▄▄ ▄▄▀██ █ ▄▄▄▄▄ ███▀ ▀ ▄█▄█ ▄█ ▀ █▄█ █▀ ▀▀▀▀▀▀▄█ █ ▄ █▄█ █▄▄██ █ █ █ █▀▀█ █▀███ █▀▀███ ▄ ▄▄▄▄▄█ ▄▀ ▀ ███▄█ ▄█▀██ █ █▄▄▄█ █ █████▀ ▄▄▄▄▀▀ ▄▀▀▄▄ ▄▀▀▀█ ▀▄█▀▀▀▀▀█▀▄█▄█ ▄ ██ █▄▄▄▄▄▄▄█▄▄▄▄▄███▄██▄█████▄█▄██▄█▄▄█▄██▄▄██▄██▄███▄█▄██

/root/StickerWhatsAppBOT/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:14:123 at ExecutionContext._evaluateInternal (/root/StickerWhatsAppBOT/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (/root/StickerWhatsAppBOT/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) at async Client.initialize (/root/StickerWhatsAppBOT/node_modules/whatsapp-web.js/src/Client.js:267:9) root@iZt4n399yyn07pki1eijsdZ:~/StickerWhatsAppBOT#

NikitoDev commented 1 year ago

I have the same error, any solution? 😢

DrelezTM commented 1 year ago

open file

/node_modules/whatsapp-web.js/src/util/Injected.js

change line 17 of Injected.js from:

window.Store.GroupMetadata = window.mR.findModule((module) => module.default && module.default.handlePendingInvite)[0].default;

to:

window.Store.GroupMetadata = window.mR.findModule('GroupMetadata')[0].default.GroupMetadata

issues: https://github.com/pedroslopez/whatsapp-web.js/issues/1786