I have an error when starting my bot using puppeteer and whatsapp-web.js, when starting it gives the error:
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'CallCollection')
at __puppeteer_evaluation_script__:9:66
at ExecutionContext._evaluateInternal (C:Users103182DocumentsBotCargas2node_modulespuppeteerlibcjspuppeteercommonExecutionContext.js:221:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (C:Users103182DocumentsBotCargas2node_modulespuppeteerlibcjspuppeteercommonExecutionContext.js:110:16)
at async Client.initialize (C:Users103182DocumentsBotCargas2node_moduleswhatsapp-web.jssrcClient.js:278:9)
at async C:Users103182DocumentsBotCargas2bot.js:231:5
Does anyone know of a solution for this?
I already reinstalled puppeteer, node modules, and also whatsapp-web.js but the error still persists.
4
Answers
It is showing the same error message here.
Same problema here since some minutes ago…
Same here! Since some hours ago…
My code is the same of last weeks but error occurs today without any changes.
I didn’t find anything else on the web so it might be a new bug due to some whatsapp update still not handled by whatsapp-web.js (my actual version is 1.21.0, the last one available)?
Updating to version 1.21.1-alpha.1 is working again.
I found the solution suggested by a user on GitHub.