I have a problem I built a bot sample, I decided to test it and this problem appears :
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:95
at ExecutionContext._evaluateInternal (C:\Users\User\User\Desktop\sample-whatsapp\node_modules\puppeteer\common\ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (C:\Users\User\Desktop\sample-whatsapp\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.initialize (C:\Users\User\Desktop\sample-whatsapp\node_modules\whatsapp-web.js\src\Client.js:323:9)
Is there an existing issue for this?
Describe the bug
I have a problem I built a bot sample, I decided to test it and this problem appears :
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95 at ExecutionContext._evaluateInternal (C:\Users\User\User\Desktop\sample-whatsapp\node_modules\puppeteer\common\ExecutionContext.js:221:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (C:\Users\User\Desktop\sample-whatsapp\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (C:\Users\User\Desktop\sample-whatsapp\node_modules\whatsapp-web.js\src\Client.js:323:9)
Node.js v18.14.2. PS C:\Users\User\Desktop\sample-whatsapp>
Expected behavior
Strange that the error appears when the library version is updated
Steps to Reproduce the Bug or Issue
Scan for QR-code
Relevant Code
No
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
No, I am not using Multi Device
Environment
Windows 10 + Node.js v18.14.2
Additional context
No response