我的WhatsApp网络机器人本周开始出现问题.

C:\pinkmeupwabot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221
            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__:5:95
    at ExecutionContext._evaluateInternal (C:\pinkmeupwabot\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 (C:\pinkmeupwabot\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
    at async Client.initialize (C:\pinkmeupwabot\node_modules\whatsapp-web.js\src\Client.js:323:9)

我试着改变lib和puppeteer版本,但没有成功,错误仍然存在.

我看了看那些表示错误的线条,但我的专业知识不允许我走那么远. 有人能帮忙吗?

推荐答案

为我解决这个错误的方法是改变我的webVersionCache:

webVersionCache: {
  type: 'remote',
  remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2412.54.html',
}

Javascript相关问答推荐

如何在JavaScript中通过一次单击即可举办多个活动

获取表格的左滚动位置

vanillajs-datepicker未设置输入值,日期单击时未触发更改事件

React存档iframe点击行为

是什么原因导致此Angular 16电影应用程序中因类型错误而不存在属性?

我无法在NightWatch.js测试中获取完整的Chrome浏览器控制台日志(log)

引用在HTMLAttributes<;HTMLDivElement>;中不可用

使用GraphQL查询Uniswap的ETH价格

如何在ASP.NET项目中使用Google Chart API JavaScript将二次轴线值格式化为百分比

更新动态数据中对象或数组中的所有值字符串

Web Crypto API解密失败,RSA-OAEP

查询参数未在我的Next.js应用路由接口中定义

在我的index.html页面上找不到我的Java脚本条形图

try 将Redux工具包与MUI ToggleButtonGroup组件一起使用时出错

将范围 Select 器添加到HighChart面积图

每隔3个项目交替显示,然后每1个项目交替显示

如何使用Reaction路由导航测试挂钩?

在将元素追加到DOM之前,createElement()是否会触发回流?混淆abt DocumentFragment行为

在高位图中显示每个y轴系列的多个值

JavaScript:多个图像错误处理程序