# ZOOm-JSSDK error

**URL:** <https://devforum.zoom.us/t/zoom-jssdk-error/4456>\
**Category:** Web\
**Created:** [May 30, 2019, 3:40pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456 "2019-05-30T15:40:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [May 30, 2019, 3:40pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/1 "2019-05-30T15:40:26Z")

</div>

I’m working with angular and integrated zoom ,it is working in local but in production is not working.  
I have imported zoom-jssdk module into project.  
Reason: zoom-jssdk error my assumption.

How can I resolve this problem?

---

<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:** [May 30, 2019, 3:50pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/2 "2019-05-30T15:50:50Z")

</div>

Hey @goalstreets

Thanks for reaching out!

Can you give me more details? Specifically how to reproduce your issue so I can debug on my end?

Try reproducing it here, I’ve installed the `zoomus-jssdk` into it [https://stackblitz.com/edit/angular-q5maje](https://stackblitz.com/edit/angular-q5maje)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [May 31, 2019, 5:19am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/3 "2019-05-31T05:19:15Z")

</div>

I have installed zoom-jssdk it is working in local but not in production due to this app not getting loaded

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [May 31, 2019, 6:07am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/4 "2019-05-31T06:07:21Z")

</div>

Error in /turbo\_modules/zoomus-jssdk@1.4.2/dist/zoomus-jssdk.umd.min.js (37:45859)  
$ is not defined  
this is the error jquery module is already installed

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [May 31, 2019, 6:13am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/5 "2019-05-31T06:13:48Z")

</div>

import { ZoomMtg } from ‘zoomus-jssdk’;  
import { Injectable } from ‘@angular/core’;

@Injectable()  
export class zoomService {

```
constructor() {

```

let dynamicScripts = ‘[https://source.zoom.us/zoom-meeting-1.3.8.min.js](https://source.zoom.us/zoom-meeting-1.3.8.min.js)’;  
for (var i = 0; i \< dynamicScripts .length; i++) {  
let node = document.createElement(‘script’);  
node.src = dynamicScripts [i];  
node.type = ‘text/javascript’;  
node.async = false;  
node.charset = ‘utf-8’;  
document.getElementsByTagName(‘head’)[0].appendChild(node);  
}  
}  
API\_KEY:any=‘xxxxxx’;  
API\_SECRET:any=‘xxxx’;

```
zoomJoinmeeting(url,meetingId,emailid) {
    ZoomMtg.setZoomJSLib('https://dmogdx0jrul3u.cloudfront.net/1.3.7/lib', '/av');
    document.getElementById('zmmtg-root').style.display="block"
    debugger;
    ZoomMtg.preLoadWasm();
    ZoomMtg.prepareJssdk();  

    const meetConfig = {
        'apiKey': this.API_KEY,
        'apiSecret': this.API_SECRET,
        'meetingNumber': meetingId,
        'userName': emailid,
        'leaveUrl': url,
        'role': 0
    };
    var signature = ZoomMtg.generateSignature({
        meetingNumber: meetConfig.meetingNumber,
        apiKey: meetConfig.apiKey,
        apiSecret: meetConfig.apiSecret,
        role: meetConfig.role,
        success: function(res) {
            console.log(res.result);
        }
    });
            ZoomMtg.init({
                leaveUrl: 'mainschedule',
                isSupportAV: true,
                success() { 
                    ZoomMtg.join({
                            meetingNumber: meetConfig.meetingNumber,
                            userName: meetConfig.userName,
                            signature: signature,
                            apiKey: meetConfig.apiKey,
                            userEmail: meetConfig.userName,
                    
                            success() {
                                console.log('join meeting success');
                            },
                            error(res) {
                                console.log("hai",res);
                            }
                        });
                },
                error(res) {
                    console.log('hi',res);
                }
            });

```

}  
// console.log(‘checkSystemRequirements’);  
// console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()))  
}

this is my service file

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [May 31, 2019, 7:11am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/6 "2019-05-31T07:11:43Z")

</div>

![Screenshot%20(17)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/6937a826fe46eb832e83f3e8d77372f23f86a712.png)

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [May 31, 2019, 7:14am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/7 "2019-05-31T07:14:27Z")

</div>

@tommy getting this error in [https://stackblitz.com/edit/angular-q5maje?file=package.json](https://stackblitz.com/edit/angular-q5maje?file=package.json)

---

<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:** [May 31, 2019, 4:02pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/8 "2019-05-31T16:02:02Z")

</div>

Hey @goalstreets!

Thanks for sending me this info, I was able to reproduce the issue!

Can you try adding this line after your `<app-root></app-root>` in `index.html`  
`<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>`

I know you said you already imported jquery, but try adding it to your `index.html` and let me know if that works.

Here is my index.html file

```auto
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>AngularZoomDebug</title>
  <base href="/">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
  <app-root></app-root>
  <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
</body>
</html>

```

And here is my component where I am using Zoom

```auto
import { Component } from '@angular/core';
import { ZoomMtg } from 'zoomus-jssdk';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'angular-zoom-debug';

  constructor() {
    console.log(ZoomMtg.checkSystemRequirements())
  }
}

```

Let me know if this fixed it, if not we can try something else!

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [June 1, 2019, 6:24am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/9 "2019-06-01T06:24:50Z")

</div>

@tommy it is not working.  
same error

---

<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 3, 2019, 3:09pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/10 "2019-06-03T15:09:31Z")

</div>

Hey @goalstreets,

Do you have this pushed to a github repo so I could clone it and debug on my end?

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [June 14, 2019, 11:44am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/11 "2019-06-14T11:44:10Z")

</div>

Hi,

We implemented given suggestion and able to resolve to some extent. Now the issue is when it is geting loaded, dynamically few code is getting generated including styles, which is affecting our portal styles.

I have attached the code that is getting generated dynamically. Please help us in how to handle this or change this so that zoom windows shouldn’t affect and also our pages shouldn’t affect.

Thanks in advance

Swarnalatha

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

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 14, 2019, 11:08pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/12 "2019-06-14T23:08:41Z")

</div>

Hi @goalstreets,

Can you send us the code logic related to zoom, which is having issues? You can either push it to a github repo or you can email us it at [developersupport@zoom.us](mailto:developersupport@zoom.us)

Let me know if you have questions.

Thanks

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [June 15, 2019, 7:07am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/13 "2019-06-15T07:07:12Z")

</div>

Hi,

I have attached the project . When we are publishing this, we are getting screen with black screen , with background as black color.

Also, dynamically code with styles is getting generated. For reference, I have attached dynamically generated code.

Please let us the process how to modify or manage the generated code. We need the solution on high priority.

Thanks in advance

Swarnalatha

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

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [June 17, 2019, 7:31am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/14 "2019-06-17T07:31:40Z")

</div>

Hi,

I have attached the project . When we are publishing this, we are getting screen with black screen , with background as black color.

Also, dynamically code with styles is getting generated. For reference, I have attached dynamically generated code.

Please let us the process how to modify or manage the generated code. We need the solution on high priority.

Thanks in advance

Swarnalatha

[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/bcec071d2daf94f074e0d45f573498975b42d6b0.png) zoom.rar](https://drive.google.com/file/d/1hLtPm7Ooo_oqLS0qqTxDpWJIqcifWXeT/view?usp=drive_web)

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

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 19, 2019, 1:11am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/15 "2019-06-19T01:11:36Z")

</div>

@goalstreets, I am looking at this, and will update you on it shortly.

Thanks

---

<div class="post-metadata">

**Author:** ![JackYang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackyang/32/1135_2.png) [@JackYang](https://devforum.zoom.us/u/JackYang)\
**Post date:** [June 21, 2019, 6:14am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/17 "2019-06-21T06:14:23Z")

</div>

I run with your demo, and see the block page background because of generating those two codes and use the whole page when invoking checkSystemRequirements().  
Zoom websdk use window.innerWidth, window.innerHeight, it uses the entire page, SPA(simple page application), you can redirect to dependent component page use Websdk. In the feature. We plan to let customer Websdk page size instead use the whole page.

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

---

<div class="post-metadata">

**Author:** ![goalstreets](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@goalstreets](https://devforum.zoom.us/u/goalstreets)\
**Post date:** [June 22, 2019, 6:36am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/18 "2019-06-22T06:36:00Z")

</div>

Hi,

The issue is still exists. Please can we have chat and resolve the issue as emails through is taking much turn around time.

We are paying the amounts for the plan from last 3 months and till now we couldn’t deploy in the server and using the services.

We are loosing the business. I request to you to come in the chat and will work together and resolve the issue.

We will be available any time.

Thanks in advance

Swarnalatha

---

<div class="post-metadata">

**Author:** ![JackYang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackyang/32/1135_2.png) [@JackYang](https://devforum.zoom.us/u/JackYang)\
**Post date:** [June 24, 2019, 5:43am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/19 "2019-06-24T05:43:13Z")

</div>

direct message to me use zoom client, My work time is GMT+8,

---

<div class="post-metadata">

**Author:** ![taushifali](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/taushifali/32/2065_2.png) [@taushifali](https://devforum.zoom.us/u/taushifali)\
**Post date:** [April 30, 2020, 4:43am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/20 "2020-04-30T04:43:08Z")

</div>

Hi,  
I am facing the same error for my react js website.  
Everything is working fine on local but its not working in production.  
Can you guys suggest me what I might be missing.

Thanks  
Taushif

---

<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:** [May 1, 2020, 9:06pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/21 "2020-05-01T21:06:40Z")

</div>

Hey @taushifali,

Please share additional details about your issue. What is the error, version of Web SDK you are using, and steps to reproduce the issue?

Thanks,  
Tommy

[Next page](https://devforum.zoom.us/t/zoom-jssdk-error/4456.md?page=2)
