Closed facuballone closed 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.
Me funciono, gracias
Is there an existing issue for this?
Describe the bug
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