# SDK 4.13.2 uses Node libraries

**URL:** <https://community.sendbird.com/t/sdk-4-13-2-uses-node-libraries/9854>\
**Category:** JavaScript\
**Created:** [July 31, 2024, 12:56pm UTC](https://community.sendbird.com/t/sdk-4-13-2-uses-node-libraries/9854 "2024-07-31T12:56:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Guy](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@Guy\_Guy](https://community.sendbird.com/u/Guy_Guy)\
**Post date:** [July 31, 2024, 12:56pm UTC](https://community.sendbird.com/t/sdk-4-13-2-uses-node-libraries/9854/1 "2024-07-31T12:56:40Z")

</div>

**[Problem]**  
Version 4.13.2 is showing the following messages when building a project with Vite for use in browser:

```auto
[plugin vite:resolve] Module "events" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin vite:resolve] Module "https" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "http" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "net" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "tls" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "stream" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "zlib" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "...node_modules/@sendbird/chat/lib/__bundle-85712b85.js". 

```

Version 4.13.1 didn’t have this issue.

Obviously these libraries do not exist when using the SDK in browsers.

* * *

**[SDK Version]**  
4.13.2

Commit:

> <https://github.com/sendbird/sendbird-chat-sdk-javascript/pull/37/files#diff-29a340727d2f4ec4441a08bcea73f43ab67be89b18b63725a2fdcf4298535be5>

**[Reproduction Steps]**

1. Install latest sendbird version in a vite project
2. run `vite build`

**[Current impact]**

1. Have no idea what is going to break on production.
2. Nobody wants to see warnings in their build output.

---

<div class="post-metadata">

**Author:** ![chris-sendbird](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chris-sendbird/32/677_2.png) [@chris-sendbird](https://community.sendbird.com/u/chris-sendbird)\
**Post date:** [August 1, 2024, 5:07am UTC](https://community.sendbird.com/t/sdk-4-13-2-uses-node-libraries/9854/2 "2024-08-01T05:07:19Z")

</div>

Hot fix is released as v4.13.3 that resolves the issue.
