pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.53k stars 3.7k forks source link

Error initializing client Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'push') #3091

Closed barjakx closed 5 months ago

barjakx commented 5 months ago

Is there an existing issue for this?

Describe the bug

i'm having this error

Error initializing client Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'push') at fillModuleArray (eval at (:2:5), :6:74) at moduleRaid (eval at (:2:5), :15:3) at pptr://puppeteer_evaluation_script:4:17 at ExecutionContext._ExecutionContext_evaluate (/www/wwebjs-bot/wwebjs-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (/www/wwebjs-bot/wwebjs-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16) at async Client.initialize (/www/wwebjs-bot/wwebjs-bot/node_modules/whatsapp-web.js/src/Client.js:323:9)

Expected behavior

it suposed to send messages and receive data

i tried this steps but it didn't work : updated to latest version of whatasppweb.js changed the bwoser from chome-stable to chromium updated node js to latest version

Steps to Reproduce the Bug or Issue

nothing at all it happend suddenly

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

os : ubuntu 22 whatsapp-web.js version v1.24.0 phone android

Additional context

please help

alechkos commented 5 months ago

2789

2816