我已经使用whatsapp-web.js很长时间了,但是它不想再工作了,我想这不是我自己的错误,你能帮我吗?,它工作了很多天,当我尝试登录时会发生这种情况。
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
at __puppeteer_evaluation_script__:14:123
at ExecutionContext._evaluateInternal (C:\Users\54112\Downloads\postall-bot2\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (C:\Users\54112\Downloads\postall-bot2\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.initialize (C:\Users\54112\Downloads\postall-bot2\node_modules\whatsapp-web.js\src\Client.js:267:9)
我对木偶不太了解,所以我自己找不到解决办法。
发布于 2022-11-12 15:17:12
在第17行的node_modules/whatsapp-web.js/src/util/Injected.js
中,更改:
window.Store.GroupMetadata = window.mR.findModule((module) => module.default && module.default.handlePendingInvite)[0].default;
至:
window.Store.GroupMetadata = window.mR.findModule('GroupMetadata')[0].default.GroupMetadata;
公域问题的解决方案在官方github:https://github.com/pedroslopez/whatsapp-web.js/issues/1795中。
https://stackoverflow.com/questions/74412474
复制相似问题