# Can import sendbird/chat sdk to my project

**URL:** <https://community.sendbird.com/t/can-import-sendbird-chat-sdk-to-my-project/7596>\
**Category:** JavaScript\
**Tags:** chatsdk\
**Created:** [June 15, 2023, 10:12am UTC](https://community.sendbird.com/t/can-import-sendbird-chat-sdk-to-my-project/7596 "2023-06-15T10:12:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loc\_nguyen\_Xuan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/loc_nguyen_xuan/32/4163_2.png) [@Loc\_nguyen\_Xuan](https://community.sendbird.com/u/Loc_nguyen_Xuan)\
**Post date:** [June 15, 2023, 10:12am UTC](https://community.sendbird.com/t/can-import-sendbird-chat-sdk-to-my-project/7596/1 "2023-06-15T10:12:26Z")

</div>

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

 ![Screenshot from 2023-06-15 16-26-55](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/0/0059a1303fae2ef2dd820966cc53409922f5efcb.png)

---

<div class="post-metadata">

**Author:** ![Miyoung\_Han](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/miyoung_han/32/183_2.png) [@Miyoung\_Han](https://community.sendbird.com/u/Miyoung_Han)\
**Post date:** [July 14, 2023, 11:33pm UTC](https://community.sendbird.com/t/can-import-sendbird-chat-sdk-to-my-project/7596/2 "2023-07-14T23:33:58Z")

</div>

Hi @Loc_nguyen_Xuan

Unfortunately, our JS SDK is not compatible. You could use platform API instead.

> **[Overview | Chat Platform API | Chat Platform API | Sendbird Docs](https://sendbird.com/docs/chat/v3/platform-api/overview)**
>
> Explore what you can do with the Chat API.
