请问下发送单聊文本卡在了send报错,一模一样的代码放在demo里面就没问题了,是怎么回事

卡在了WebIM.conn.send(msg.body)这步,参数打印了没有问题,报错是TypeError: Cannot read properties of undefined (reading 'readyState')
at e.N.sendMSync (Easemob-chat-3.6.3.js?b32a:2)
at l (Easemob-chat-3.6.3.js?b32a:2)
at p (Easemob-chat-3.6.3.js?b32a:2)
at e.N.send (Easemob-chat-3.6.3.js?b32a:2)
at Object.success (App.vue?234e:51)
at l.success (Easemob-chat-3.6.3.js?b32a:2)
at XMLHttpRequest.a.onreadystatechange (Easemob-chat-3.6.3.js?b32a:2)
已邀请:

您好,请您排查一下您sdk的挂载是否成功。也可以参考一下demo的处理

是不是有同名对象?

要回复问题请先登录注册