skip to Main Content

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


  1. It is showing the same error message here.

    Login or Signup to reply.
  2. Same problema here since some minutes ago…

    Login or Signup to reply.
  3. 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)?

    Login or Signup to reply.
  4. Updating to version 1.21.1-alpha.1 is working again.
    I found the solution suggested by a user on GitHub.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search