You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled TypeError [ERR_INVALID_ARG_TYPE]: The "list[0]" argument must be an instance of Buffer or Uint8Array. Received type string ('ok')
现在出现了这个报错,现在一步一个脚印,这个错误一般是因为什么
Activity
GrinZero commentedon Sep 30, 2025
哈喽,我会在今天晚上尝试兼容~当然如果可以,可以给一些错误截图
code-lixm commentedon Sep 30, 2025
感谢
ReferenceError: ReadableStream is not defined
第一个问题已解决,ReadableStream defined in node V18
也有可能是第一个问题的解决方式,导致出现了第二个问题
Unhandled RangeError: Invalid WebSocket frame: RSV1 must be clear
这个问题是 ws 的问题,猜测问题可能出现在 permessage-deflate
我的 electron 版本是 15.5.7,对应内核在 node V16.5
GrinZero commentedon Sep 30, 2025
脑测一下,试试
require('node:stream')code-lixm commentedon Sep 30, 2025
Unhandled TypeError [ERR_INVALID_ARG_TYPE]: The "list[0]" argument must be an instance of Buffer or Uint8Array. Received type string ('ok')
现在出现了这个报错,现在一步一个脚印,这个错误一般是因为什么
GrinZero commentedon Sep 30, 2025
看起来是这里出错了,还是跟 websocket 有关系 ,要看看你那里是尝试用 ws 连接哪里了;
晚点我切到 16 测一下
GrinZero commentedon Oct 15, 2025
跟你同步一下进度。
我尝试了
出现的报错是:
所以我简单 patch 了一下 ws:
这样就可以运行了。
我这里是 v16.20.2