whatsapp-web.js
whatsapp-web.js copied to clipboard
Cannot read properties of undefined (reading 'newTag')
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
/app/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 'newTag') at puppeteer_evaluation_script:14:59 at ExecutionContext._evaluateInternal (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) at async Client.initialize (/app/node_modules/whatsapp-web.js/src/Client.js:216:9)
Expected behavior
Steps to Reproduce the Bug or Issue
Relevant Code
Browser Type
Google Chrome
WhatsApp Account Type
WhatsApp Business
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
ubuntu
Additional context
if send message see log error
Same here.
oh god please not this bug again
The same is happening here, but with getChats function
same here
`(node:1934) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'canReply')
at Object.window.WWebJS.sendMessage (__puppeteer_evaluation_script__:34:31)
at __puppeteer_evaluation_script__:10:45
at ExecutionContext._evaluateInternal (/root/whatsapp/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ExecutionContext.evaluate (/root/whatsapp/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Client.sendMessage (/root/whatsapp/node_modules/whatsapp-web.js/src/Client.js:594:28)
at async Client.<anonymous> (/root/whatsapp/bot.js:329:37)
`
I am getting this after upgrading to the newest version of the library and trying to Reply to a message
Same problem