Skip to content

Commit d684abe

Browse files
committed
Update README; '--esModuleInterop' info
1 parent 983fb32 commit d684abe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ import SendBirdCall from "sendbird-calls";
3838

3939
SendBirdCall.init(APP_ID)
4040
```
41+
> **Note**: If you are using TypeScript, you have to set ['--esModuleInterop' setting to `true` for 'default import'](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop), or use `import * as SendBirdCall from "sendbird-calls"` instead.
42+
4143
Or use the minified file to initialize `SendBirdCall` as global variable in the header
4244
```html
4345
<script type="text/javascript" src="SendBirdCall.min.js"></script>

0 commit comments

Comments
 (0)