# Used in create-react-app typescipt version, there is an error

**URL:** <https://devforum.zoom.us/t/used-in-create-react-app-typescipt-version-there-is-an-error/20741>\
**Category:** Web\
**Created:** [June 9, 2020, 6:24am UTC](https://devforum.zoom.us/t/used-in-create-react-app-typescipt-version-there-is-an-error/20741 "2020-06-09T06:24:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spirit.ling.pub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/spirit.ling.pub/32/9827_2.png) [@spirit.ling.pub](https://devforum.zoom.us/u/spirit.ling.pub)\
**Post date:** [June 9, 2020, 6:24am UTC](https://devforum.zoom.us/t/used-in-create-react-app-typescipt-version-there-is-an-error/20741/1 "2020-06-09T06:24:47Z")

</div>

**Description**  
Run in the program

```auto
// global.d.ts
declare module "@zoomus/websdk";

```

```auto
import { ZoomMtg } from "@zoomus/websdk";

console.log(ZoomMtg);

```

**Error**

```auto
<--- Last few GCs --->

[15112:000001DF3BE1E630] 1809544 ms: Mark-sweep 1374.9 (1423.5) -> 1374.8 (1423.5) MB, 1115.2 / 0.0 ms (average mu = 0.187, current mu = 0.000) last resort GC in old space requested
[15112:000001DF3BE1E630] 1810641 ms: Mark-sweep 1374.8 (1423.5) -> 1374.8 (1423.5) MB, 1097.1 / 0.0 ms (average mu = 0.103, current mu = 0.000) last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 000000E9986DC5C1]
Security context: 0x01145399e6e9 <JSObject>
    1: push [0000011453985859](this=0x0134e0002201 <JSArray[579629]>,0x0382a31280e1 <Object map = 000002339DE4D261>)
    2: append [00000253FF4B6F09] [D:\LeyserNext\schoolbusiness\PublicSite\node_modules\@babel\generator\lib\buffer.js:~61] [pc=000000E999C26D3F](this=0x0134e0002299 <Buffer map = 0000018C6AA27199>,str=0x03c54e6888f9 <String[1]: N>)
    3: Id...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: 00007FF797ACF04A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+5114
 2: 00007FF797AAA0C6 node::MakeCallback+4518
 3: 00007FF797AAAA30 node_module_register+2032
 4: 00007FF797D320EE v8::internal::FatalProcessOutOfMemory+846
 5: 00007FF797D3201F v8::internal::FatalProcessOutOfMemory+639
 6: 00007FF798252BC4 v8::internal::Heap::MaxHeapGrowingFactor+9556
 7: 00007FF7982510CB v8::internal::Heap::MaxHeapGrowingFactor+2651
 8: 00007FF797E0CBE8 v8::internal::Factory::AllocateRawArray+56
 9: 00007FF797E0D562 v8::internal::Factory::NewFixedArrayWithFiller+66
10: 00007FF797E811FC v8::internal::HashTable<v8::internal::NumberDictionary,v8::internal::NumberDictionaryShape>::KeyAt+40700
11: 00007FF797E80E7D v8::internal::HashTable<v8::internal::NumberDictionary,v8::internal::NumberDictionaryShape>::KeyAt+39805
12: 00007FF797E75546 v8::internal::HashTable<v8::internal::NumberDictionary,v8::internal::NumberDictionaryShape>::EntryToIndex+73414
13: 00007FF79803EE38 v8::internal::SharedFunctionInfo::SetScript+23528
14: 00007FF798021DE3 v8::internal::JSReceiver::class_name+20595
15: 00007FF797DFCFE9 v8::internal::wasm::WasmCodeManager::LookupCode+17993
16: 00007FF797E000A4 v8::internal::wasm::WasmCodeManager::LookupCode+30468
17: 000000E9986DC5C1

```

**Which version?**  
All are the latest version

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. `npm run start`
2. output error info

**Screenshots**  
If applicable, add screenshots to help explain your problem.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8e3a4ec347e898d4a1c39839ee0c3d2ad3a54e0b.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 12, 2020, 9:11pm UTC](https://devforum.zoom.us/t/used-in-create-react-app-typescipt-version-there-is-an-error/20741/2 "2020-06-12T21:11:14Z")

</div>

Hey @spirit.ling.pub,

You shouldn’t have to declare `declare module "@zoomus/websdk";`

Please try following the steps here:

> **[@zoomus/websdk](https://www.npmjs.com/package/@zoomus/websdk)**
>
> Zoom Web SDK

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:01pm UTC](https://devforum.zoom.us/t/used-in-create-react-app-typescipt-version-there-is-an-error/20741/3 "2020-08-21T22:01:50Z")

</div>

Closed on August 21, 2020, 10:01pm UTC


