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.39k stars 3.67k forks source link

New Alpha version files (which we define in the webVersionCache remote path) are not working and all beta version file and normal files are deleted. Is there anything to fisx i use the chrome browser as pupputer and installed the latest puppeter and also tried using the latest version of whatsappweb.js #3146

Closed ajay-512001 closed 4 months ago

ajay-512001 commented 4 months ago

Is there an existing issue for this?

Describe the bug

New Alpha version files (which we define in the webVersionCache remote path) are not working and all beta version file and normal files are deleted. Is there anything to fisx i use the chrome browser as pupputer and installed the latest puppeter and also tried using the latest version of whatsappweb.js and when i scan the qr code it stuck there ready event is not firing and giving error

node_modules\whatsapp-web.js\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:5:51 at ExecutionContext._evaluateInternal (\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.initialize (\node_modules\whatsapp-web.js\src\Client.js:323:9)

Node.js v20.8.1

Expected behavior

It shuld work like they are working in old beta or normal version file.

Steps to Reproduce the Bug or Issue

  1. Install latest everything
  2. use this webchache version : webVersionCache: { type: 'remote' , remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014251604-alpha.html' }

3.here is the new alpha files 4.and run the code and scan the qr.

Relevant Code

const clientI = new Client({ authStrategy: new LocalAuth(), puppeteer: { headless: true, args: [ '--no-sandbox', '--disable-gpu', ], }, webVersionCache: { type: 'remote' , remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014251604-alpha.html' } });

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

OS: Windows Phone OS: Android whatsapp-web.js version : latest version Node.js Version: v20.12.2

Additional context

No response

alechkos commented 4 months ago

2816