# Error TypeError: NativePromise.resolve is not a function when integrate zoom websdk?

**URL:** <https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080>\
**Category:** Web\
**Created:** [July 24, 2020, 11:10am UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080 "2020-07-24T11:10:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yennt57.neu](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@yennt57.neu](https://devforum.zoom.us/u/yennt57.neu)\
**Post date:** [July 24, 2020, 11:10am UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080/1 "2020-07-24T11:10:50Z")

</div>

**Can not start run angular app when integrate zoom websdk version 1.7.7**

**Screenshots**

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

**My code:**  
import { Component, OnInit } from ‘@angular/core’;  
import { ZoomMtg } from ‘@zoomus/websdk’’;  
ZoomMtg.setZoomJSLib(‘node\_modules/@zoomus/websdk/dist/lib’, ‘/av’);  
ZoomMtg.preLoadWasm();  
ZoomMtg.prepareJssdk();

@Component({  
selector: ‘app-zoom-platform’,  
templateUrl: ‘./zoom-platform.component.html’,  
styleUrls: [’./zoom-platform.component.scss’]  
})  
export class ZoomPlatformComponent implements OnInit {  
name = ‘’;  
meetingId = 0;  
password = ‘’;

meetConfig = {  
apiKey: ‘’,  
apiSecret: ‘’,  
meetingNumber:,  
userName: ‘Angular’,  
passWord: ‘’,  
leaveUrl: ‘[http://localhost:4400](http://localhost:4400)’,  
role: 0  
};

signature = ZoomMtg.generateSignature({  
meetingNumber: this.meetConfig.meetingNumber,  
apiKey: this.meetConfig.apiKey,  
apiSecret: this.meetConfig.apiSecret,  
role: this.meetConfig.role,  
success: function(res){  
console.log(res.result);  
}  
});  
constructor() { }  
async ngOnInit() {  
}  
joinZoom() {  
ZoomMtg.init({  
leaveUrl: ‘[http://localhost:4400](http://localhost:4400)’,  
isSupportAV: true,  
success: (res) =\> {  
ZoomMtg.join({  
meetingNumber: this.meetConfig.meetingNumber,  
userName: this.meetConfig.userName,  
signature: this.signature,  
apiKey: this.meetConfig.apiKey,  
userEmail: ‘email@gmail.com’,  
passWord: this.meetConfig.passWord,  
success: (resSuccess) =\> {  
console.log(‘join meeting success’);  
},  
error: (resError) =\> {  
console.log(resError);  
}  
});  
},  
error: (res) =\> {  
console.log(res);  
}  
});  
}  
}

How can I fix this issue?

---

<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:** [July 28, 2020, 4:17pm UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080/3 "2020-07-28T16:17:30Z")

</div>

Hey @yennt57.neu,

Please checkout our Angular Web SDK Sample App:

> **[zoom/websdk-sample-angular](https://github.com/zoom/websdk-sample-angular)**
>
> Use the Zoom Web SDK in an Angular App. Contribute to zoom/websdk-sample-angular development by creating an account on GitHub.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![cao.khuat](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/cao.khuat/32/12516_2.png) [@cao.khuat](https://devforum.zoom.us/u/cao.khuat)\
**Post date:** [July 30, 2020, 2:36am UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080/4 "2020-07-30T02:36:45Z")

</div>

Hi @tommy  
i check out your Angular Web SDK sample app is working fine, but when i integrate into my project i get this issue above ☹  
my project using zone version 0.8.18

---

<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:** [July 31, 2020, 3:38pm UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080/5 "2020-07-31T15:38:42Z")

</div>

Hey @cao.khuat,

If you share your github repo I can try to debug your app. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![cao.khuat](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/cao.khuat/32/12516_2.png) [@cao.khuat](https://devforum.zoom.us/u/cao.khuat)\
**Post date:** [August 4, 2020, 1:38am UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080/6 "2020-08-04T01:38:00Z")

</div>

@tommy thank you for reply  
my project is private, so i can not share Github repo to you. i upgrade zone.js to 0.9.1 it working fine 😃

---

<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:** [August 4, 2020, 6:24pm UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080/7 "2020-08-04T18:24:16Z")

</div>

Hey @cao.khuat,

Great, happy to hear you got it working! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 11, 2020, 6:24pm UTC](https://devforum.zoom.us/t/error-typeerror-nativepromise-resolve-is-not-a-function-when-integrate-zoom-websdk/25080/8 "2020-08-11T18:24:20Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
