#I need help setting the WWebsJS up

8 messages · Page 1 of 1 (latest)

analog plinth
#

I got an error after scanning the QR code now I fixed it but still have some several errors.. any experienced mates here.

/Users/kristofer/nodemodules/whatsapp-web.js/nodemodules/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 'default')
at __puppeteer_evaluation_script:5:95
at ExecutionContext._evaluateInternal (/Users/kristofer/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/Users/kristofer/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Client.initialize (/Users/kristofer/node_modules/whatsapp-web.js/src/Client.js:323:9)

Node.js v20.14.0
kristofer@Kristoferss-MacBook-Pro desktop %

#

Anyone could know what is the issue?

#

<@&1204003508748292157>

#

/Users/kristofer/nodemodules/whatsapp-web.js/nodemodules/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 'default')
at __puppeteer_evaluation_script:5:95
at ExecutionContext._evaluateInternal (/Users/kristofer/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/Users/kristofer/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Client.initialize (/Users/kristofer/node_modules/whatsapp-web.js/src/Client.js:323:9)

Node.js v20.14.0
kristofer@Kristoferss-MacBook-Pro desktop %

steel hornet
#

Using version Exodus WhatsApp Web 2.30xx:
1- npm install github:pedroslopez/whatsapp-web.js#webpack-exodus;
2- se estiver usando, remover WebCache;
3- delete folder node_modules and wwebjs_auth;
4- npm install;
5- start seu bot.

Using version WhatsApp Web 2.24xx:
1- npm i [email protected];
2- Usar WebCache;

{
  webVersion: "2.2412.54",
  webVersionCache: {
        type: "remote",
        remotePath:
          "https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2412.54.html",
      },
}

3- delete folder node_modules and wwebjs_auth;
4- npm install;
5- start seu bot.

analog plinth
#

Will try, thanks a lot mate.

#

Yes I tried it, thanks a lot. But still have this error .
`
´´´npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: < 22.5.0 is no longer supported

added 114 packages, and audited 116 packages in 23s

8 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
alen@Alens-MacBook-Air ~ % npm i [email protected]

changed 1 package, and audited 116 packages in 1s

8 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
alen@Alens-MacBook-Air ~ % cd desktop
alen@Alens-MacBook-Air desktop % node main.js
/Users/alen/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:310
reject(new Errors_js_1.TimeoutError(Timed out after ${timeout} ms while trying to connect to the browser! Only Chrome at revision r${preferredRevision} is guaranteed to work.));
^

TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r1045629 is guaranteed to work.
at Timeout.onTimeout (/Users/alen/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:310:20)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

Node.js v20.14.0
alen@Alens-MacBook-Air desktop % ´´´
Already trying to get it for 4h. Your help would make my day 🙂
<@&1204003508748292157>
Even tried it on different PC but still the same ERROR

drowsy granite