GroupChannel.buildFromSerializedData is broken on sendbird JavaScript SDK version 3.0.143

I’m attempting to persist SendBird Group Channels to redux store which requires the objects to be serializable.

I’ve created a test function which simply serializes, and immediately deserializes a Group Channel

  const x = channel.serialize();
  console.log(sb.GroupChannel.buildFromSerializedData(x));

Running this throws the following error

TypeError: Object is not a constructor (evaluating 'new i')]
- node_modules/sendbird/SendBird.min.js:6:205050 in value

It’s unbelievable that this isn’t automatically tested as part of each release, and it doesn’t help that the github/npm source only contains minified JavaScript, so I can’t even help identify root cause. This is a technical deal blocker for our team use the SendBird platform.

Sorry to see this happening. I will create a report to check this issue and get back to you ASAP.

Please, check this fix our team just released. It should solve this issue:

Thanks for reporting errors and and sorry again for the inconvenience.

Thanks Walter, just tested it in our application and deserialization is working!

1 Like