We’ve started using version 4 (4.0.7) of Chat SDK in our React Native application. During development everything was working great, but when we’re trying to run Release version of iOS/Android app, it’s crashing right away.
So after debugging, I’ve found out that error comes from Sendbird library
I’m not sure if I understand how you say you’ve fixed this problems so its hard for me to understand what’s really happening. Could you expand your solution?
at the beggining theres function n(t,n,r), and it’s returned at the end of this code block. And this issue Can't find variable: n relates to this returned value at the end. After changing name of this function and using it at the end - everything works fine. So there’s probably issue with bundling those scripts.
Thank you for that. Also just to confirm, does this occur on both iOS and Android?
One additional ask, can you try upgrading to the newly released 4.0.8 and see if the issue still exists?
Since you’re with the same team, I’ll tag you together. Is the error exactly the same as the OP? Is it also only happening on release and not in development? Did it ever work on any version of V4?
My apologies for the delay on this. Is there any chance you’re able to put together a sample application that creates this error? I tried building out a small application using our V4 SDK and building in release mode but have not yet been able to reproduce the error.
I believe we’ve answered this via a support case but I’ll also post it here. Our Engineering team did a deep dive on the topic and determined that this is no longer an issue when using React-Native v.065 or higher. This is a error within Metro Bundler (reference)