Closed ujjawalchauhan13 closed 2 years ago
Update:
{ id: "State", conditions: module => module.Socket && module.Socket.takeover ? module : null }
Same error on method: getNumberProfile
Evaluation failed: TypeError: Cannot read properties of undefined (reading 'Socket')
at Object.window.WAPI.window.WAPI._serializeMeObj (/path/to/node_modules/.pnpm/venom-bot@4.0.6/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:37635)
at Object.window.WAPI.window.WAPI.getNumberProfile (/path/to/node_modules/.pnpm/venom-bot@4.0.6/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:70457)
Same error on method: getConnectionState
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'Socket')
at __puppeteer_evaluation_script__:3:48
at ExecutionContext._evaluateInternal (C:\Users\leona\Desktop\zapper\chatbot-promo-whatsapp\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ExecutionContext.evaluate (C:\Users\leona\Desktop\zapper\chatbot-promo-whatsapp\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
Same error in getConnectionState.
Versions: 4.0.5 and 4.0.6 Node 12, 14 and 16 OS: All Windows after 7
at __puppeteer_evaluation_script__:3:48
at ExecutionContext._evaluateInternal (C:\HOSWPP\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (C:\HOSWPP\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)```
Description
Whenever I scan the QR code, and right before I run it, I get the Socket undefined bug
Environment
Steps to Reproduce
Log Output