Hi, I’m trying to import sendbird/chat sdk to my project (base on nestjs)
but i got this error: Error: require() of ES Module /home/Project/be/node_modules/@sendbird/chat/sendbird.js from /home/Project/be/src/@sdk/sendbird/services/channel-sendbird.service.ts not supported.
Instead change the require of sendbird.js in /home/be/src/@sdk/sendbird/services/channel-sendbird.service.ts to a dynamic import() which is available in all CommonJS modules.
So anyone can tell me why and how to fix it, pls
thank you
Here is my code
Unfortunately, our JS SDK is not compatible. You could use platform API instead.