[Problem/Question]
sendbird sdk에서 애플리케이션 시작시 항상 다음과 같은 에러를 만나고 있습니다.
앱 개발 진행에 어려움이 있습니다. 이 에러로 인해 채널 생성후 메시지가 보내지지 않거나
handler로 채널에 메시지가 온 것을 감지하지 못하는 상황입니다.
groupChannel.js:1 Uncaught (in promise) TypeError: Cannot assign to read only property '_iid' of object '#<u>'
// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?
“@sendbird/chat”: “^4.2.7”,
[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
let sb: SendBirdModule | null = null;
export const APP_ID = process.env.REACT_APP_ID || "";
export const API_TOKEN = process.env.REACT_APP_API_TOKEN || "";
const SENDBIRD_API_URL = `https://api-${APP_ID}.sendbird.com`;
function getSendBird(): SendBirdModule {
if (!sb) {
sb = SendbirdChat.init({
appId: APP_ID,
modules: [new GroupChannelModule(), new OpenChannelModule()],
localCacheEnabled: true,
});
return sb;
}
return sb;
}
[Frequency]
// How frequently is this issue occurring?
Always
[Current impact]
// How is this currently impacting your implementation?