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

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

Screenshots

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: ‘meiSlverRoq_QjpUSFXYSA’,
apiSecret: ‘87fPWGdrODt8MhMrZaL79oSRSDhVR75UPPWP’,
meetingNumber: 7045659177,
userName: ‘Angular’,
passWord: ‘538542’,
leaveUrl: ‘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’,
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?

Hey @yennt57.neu,

Please checkout our Angular Web SDK Sample App:

Thanks,
Tommy

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 :frowning:
my project using zone version 0.8.18

Hey @cao.khuat,

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

Thanks,
Tommy

@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 :smiley:

Hey @cao.khuat,

Great, happy to hear you got it working! :slight_smile:

Thanks,
Tommy

1 Like

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