pascalroget / whatsgpt

WhatsApp Bot for ChatGPT with multiple user support
MIT License
90 stars 32 forks source link

Evaluation failed: TypeError: Cannot read properties of undefined (reading 'LegacyPhoneFeatures') #12

Open sonkase opened 1 year ago

sonkase commented 1 year ago

I get the error: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'LegacyPhoneFeatures') at puppeteer_evaluation_script:13:76 at ExecutionContext._evaluateInternal (...\whatsgpt\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 (...\whatsgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (...\whatsgpt\node_modules\whatsapp-web.js\src\Client.js:267:9)

Do you have any idea why this happens? Thanks in advance

Rohit-Ranjan-Nilkant commented 1 year ago

Go to node_modules -->whatsapp-web.js --> src -->util ---> Injected.js and comment out this window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].LegacyPhoneFeatures; (Line 16) image

felipfr commented 1 year ago

My solution is: