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

window.Store.NumberInfo.findCC is not a function #3229

Open
1 task done
zaer73 opened this issue Jul 29, 2024 · 3 comments · May be fixed by #3292
Open
1 task done

window.Store.NumberInfo.findCC is not a function #3229

zaer73 opened this issue Jul 29, 2024 · 3 comments · May be fixed by #3292
Labels
bug Something isn't working

Comments

@zaer73
Copy link

zaer73 commented Jul 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I call getCountryCode, it gives this error.
There has been a problem recently.
"Evaluation failed: TypeError: window.Store.NumberInfo.findCC is not a function\n at pptr://puppeteer_evaluation_script:2:44 ...

Expected behavior

.

Steps to Reproduce the Bug or Issue

.

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

whatsapp-web.js version 1.25.0

Additional context

No response

@zaer73 zaer73 added the bug Something isn't working label Jul 29, 2024
@AlefMartins
Copy link

Hello, I have the same error, were you able to resolve it?

@dpgt

This comment was marked as off-topic.

@alechkos alechkos linked a pull request Sep 26, 2024 that will close this issue
6 tasks
@alechkos
Copy link
Collaborator

@zaer73, @AlefMartins, @dpgt

Fixed here.
Until the PR is merged, you can use the fix by runnnig one of the following commands:

  • NPM
npm install github:alechkos/whatsapp-web.js#fix-getCountryCode
  • YARN
yarn add github:alechkos/whatsapp-web.js#fix-getCountryCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants