Before a week I start to get this error.
Up to scanning qr code every thing is ok, but after canning qr code it returns following error
C:SLnodewanode_modulespuppeteer-corelibcjspuppeteercommonExecutionContext.js:229
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:SLnodewanode_modulespuppeteer-corelibcjspuppeteercommonExecutionContext.js:229:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (C:SLnodewanode_modulespuppeteer-corelibcjspuppeteercommonExecutionContext.js:107:16)
at async Client.initialize (C:SLnodewanode_moduleswhatsapp-web.jssrcClient.js:340:9)
-
Deleted .wwebjs_auth .wwebjs_cache, node_modules
-
Re-installed all the packages
-
Tried the solution as Error after scanning qr code for whatsapp-web.js
client = 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.2412.54.html', } });
-
Tried the solution as Npm package whatsapp-web.js broke
const client = new Client({ webVersionCache: { type: "remote", remotePath: "https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2412.54.html", }, });