Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at pptr://__puppeteer_evaluation_script__:5:95 #2982

Closed
1 task done
MatheusBigatao opened this issue Apr 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MatheusBigatao
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I recently installed the library and run the "example.js". After I read the QR code, it gives me this error:

C:\MAMP\htdocs\Whatsapp\whatsapp-web.js\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:229
throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
at pptr://puppeteer_evaluation_script:5:95
at ExecutionContext._ExecutionContext_evaluate (C:\MAMP\htdocs\Whatsapp\whatsapp-web.js\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:229:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (C:\MAMP\htdocs\Whatsapp\whatsapp-web.js\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:107:16)
at async Client.initialize (C:\MAMP\htdocs\Whatsapp\whatsapp-web.js\src\Client.js:339:9)

Expected behavior

to no give the error

Steps to Reproduce the Bug or Issue

  1. git clone the repository
  2. npm install
  3. run the example.js with "node example.js"

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

Windows
whatsapp-web.js [1.23.1-alpha.5]
node.js version 18.15

Additional context

No response

@MatheusBigatao MatheusBigatao added the bug Something isn't working label Apr 23, 2024
@alechkos
Copy link
Collaborator

#2⁷89
#2816

@alechkos alechkos closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2024
Repository owner locked and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants