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
Uncaught TypeError: Cannot read properties of undefined (reading 'm') #1778
Comments
The steps to reproduce the issue are:
WPP.isInjected is always False |
Whatsapp is delivering js that is incompatible with the lib when you have the "wa_build=c" cookie set. To fix it, set the cookie to any other value, then reload the page: document.cookie = "wa_build=w;domain=.web.whatsapp.com;path=/"; For me, Whatsapp is setting this cookie every time I reload the page, forcing me to set another value for the cookie every time. |
the problem seems that in the 2.300 version, the injected code wrongly set the WPP.webpack.loaderType = "webpack" instead of "meta". Maybe a solution is adding a check of wa web version In the injectLoader function, replacing these lines
with
|
Hello, could you please test this fix I made on the scenarios you've been facing and provide feedback on the PR? |
It's a great |
WA-JS Version
v3.0.1
WhatsApp Version
2.3000.1012314172
Browser Version
Chrome Version 122.0.6261.131
Operation System
Windows 11
Steps to reproduce
1 - Open the browser console connected to WhatsApp web in version 2.3000.x
2 - Inject WA-JS version 3.0.1
3 - Call the WPP.chat.list() await function;
What is expected?
Show WhatsApp Web conversation list
What is actually happening?
Generating the error: Uncaught TypeError: Cannot read properties of undefined (reading 'm')
at Object.p [as searchId] (:12567:58)
at Object.get [as ChatStore] (:13134:45)
at t.list (:6574:31)
at :1:16
This error is caused by the function below:
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: