I am unable to get the SendbirdChat from the global Sendbird variable. However, other modules like GroupChannelModule and OpenChannelModule, and amongst many others are available.
Given this, I am not able to initialize the SendbirdChat client as the init method is available as part SendbirdChat.
output of the console.log of the global Sendbird variable.
the easiest way is to copy and paste the .min.js directly into my browser console. it will result in the Sendbird variable being created but without the SendbirdChat module
Yes, I am importing it directly into the js. I have confirmed that the import from npm works but a new application environment doesn’t support es modules and fails to import from npm.
I have created another sandbox with the js copied in.
Can you help us understand why you’re not importing the file via a script tag? We’re having trouble with your code sandbox because it keeps crashing trying to load the entire minified text.
Regardless, I think the problem here is that SendbirdChat is a default export and thus the global variable you created is already SendbirdChat.
I spent some time looking at this, we discovered a bug on our side and will look to getting this resolved as soon as possible. Apologies for the inconvenience.
Chat v4.0.10 was released today that addresses the export issue of SendbirdChat. Please update to the latest version and let us know if you have any issues.