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.03k stars 3.57k forks source link

Error in Running #3211

Closed facuballone closed 1 month ago

facuballone commented 1 month ago

Is there an existing issue for this?

Describe the bug

   When I try to run WhatsApp web through the QR

throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails)); ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at pptr://puppeteer_evaluation_script:5:95 at ExecutionContext._ExecutionContext_evaluate (C:\Users\sistemas2\Desktop\pruebawspweb\node_modules\whatsapp-web.js\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 (C:\Users\sistemas2\Desktop\pruebawspweb\node_modules\whatsapp-web.js\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:107:16) at async Client.initialize (C:\Users\sistemas2\Desktop\pruebawspweb\node_modules\whatsapp-web.js\src\Client.js:340:9)

Expected behavior

Run

Steps to Reproduce the Bug or Issue

By scanning the QR to log in to WhatsApp web

Relevant Code

const { Client } = require('whatsapp-web.js'); const qrcode = require('qrcode-terminal');

const client = new Client();

client.on('ready', () => { console.log('Client is ready!'); });

client.on('qr', qr => { qrcode.generate(qr, {small: true}); });

client.initialize();

inicio de sesion por defaultconst { Client } = require('whatsapp-web.js'); const qrcode = require('qrcode-terminal');

const client = new Client();

client.on('ready', () => { console.log('Client is ready!'); });

client.on('qr', qr => { qrcode.generate(qr, {small: true}); });

client.initialize();

-default login

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: [e.g. Mac, Windows, Linux, Docker + Ubuntu 18, etc]

Additional context

Error is running

julianullrich99 commented 1 month ago

Duplicate of https://github.com/pedroslopez/whatsapp-web.js/issues/3209

BenyFilho commented 1 month ago

Using Exodus Version Requer Node 18+ 1- npm install github:pedroslopez/whatsapp-web.js#webpack-exodus; 2- If you are using, remove WebCache; 3- delete folders node_modules and wwebjs_auth; 4- npm install; 5- start seu bot.

facuballone commented 1 month ago

Me funciono, gracias