# Trying to include the JS SDK into an exisiting VueJS project

**URL:** <https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912>\
**Category:** Web\
**Created:** [April 10, 2019, 6:13pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912 "2019-04-10T18:13:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![washington.bruno](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/washington.bruno/32/46467_2.png) [@washington.bruno](https://devforum.zoom.us/u/washington.bruno)\
**Post date:** [April 10, 2019, 6:13pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/1 "2019-04-10T18:13:48Z")

</div>

Hi,

I’m trying to integrate the Web SDK following this part of the tutorial:

> **[Integrate the SDK - Getting Started - Web SDK - Native SDKs - Zoom Software...](https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/getting-started/integrate-the-sdk#include-the-js-sdk-into-an-exisiting-nodejs-project)**
>
> Integrate the Web SDK
> 
> 
> 
> To get started with using our Web SDK, you can use either by downloading the CDN version of our sample web app, downloading the...

In my index.html i include the JQuery using CDN because the local way are not working:  
**The local way:** `<script src="node_modules/jquery/dist/jquery.js"></script>`  
**Using:** `<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>`

Add the dependencies to the index.html:  
`<link type="text/css" rel="stylesheet" href="node_modules/zoomus-jssdk/dist/css/bootstrap.css" />`  
`<link type="text/css" rel="stylesheet" href="node_modules/zoomus-jssdk/dist/css/react-select.css" />`

And put all the index.js in my component script.  
I can connect to the meeting, but I get these errors and my screen got stuck:  
 ![screenandconsole](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/6daa6dc9c69b26d2d7016d6215e282c610f0d941.png)

Am I doing something wrong or is something missing?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![rodrigo](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rodrigo](https://devforum.zoom.us/u/rodrigo)\
**Post date:** [April 11, 2019, 2:56pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/2 "2019-04-11T14:56:09Z")

</div>

I have the same problem, but in React. I install zoom via npm.

---

<div class="post-metadata">

**Author:** ![washington.bruno](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/washington.bruno/32/46467_2.png) [@washington.bruno](https://devforum.zoom.us/u/washington.bruno)\
**Post date:** [April 11, 2019, 5:02pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/3 "2019-04-11T17:02:25Z")

</div>

I install via npm too. You tried using CDN? I will try now and see.

---

<div class="post-metadata">

**Author:** ![rodrigo](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rodrigo](https://devforum.zoom.us/u/rodrigo)\
**Post date:** [April 11, 2019, 5:31pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/4 "2019-04-11T17:31:00Z")

</div>

yes, but i couldn’t do it. If you can will make working, show me please.

---

<div class="post-metadata">

**Author:** ![washington.bruno](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/washington.bruno/32/46467_2.png) [@washington.bruno](https://devforum.zoom.us/u/washington.bruno)\
**Post date:** [April 11, 2019, 5:55pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/5 "2019-04-11T17:55:05Z")

</div>

yes, i couldn’t do it too… I forgot the nature of the Vue templates. Probably only works with NPM. You got the “Unexpected token” problem too?

---

<div class="post-metadata">

**Author:** ![rodrigo](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rodrigo](https://devforum.zoom.us/u/rodrigo)\
**Post date:** [April 11, 2019, 6:06pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/6 "2019-04-11T18:06:49Z")

</div>

yes. i think the only way is via npm. But for a reason not have the “JsMediaSDK\_Instance” reference when try create the object in this part:

> {  
> key: “creatAVSocket”,  
> value: function () {  
> function e() {  
> var e = this.props,  
> n = e.meeting,  
> r = e.baseStaticUrl,  
> o = new JsMediaSDK\_Instance(),  
> i = (0, g.getVersionFromURL)(r),  
> a = function () {  
> function e(e, t) {  
> this.initStatus = e, this.socketCallBack = t, this.canvasInfo = {}, this.joinVoipTimes = 0;  
> }  
> return e;  
> }

I dont know

---

<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:** [April 22, 2019, 12:07pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/8 "2019-04-22T12:07:16Z")

</div>

@rodrigo currently, jssdk just support react 15.  
1 install cdn version

 ![install%20cdn%20version](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/e873606a6cf598d024fa1d733df9b6854a9e6039.png)  
2.download all dependencies.  
 ![check%20js_media](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/c8e746f5e0319db9114a9b8441ebb38322935e95.png)  
3. check whether you have invok thoes function if haven’t download dependencies.

[https://zoom.github.io/sample-app-web/ZoomMtg.html#prepareJssdk](https://zoom.github.io/sample-app-web/ZoomMtg.html#prepareJssdk)  
[https://zoom.github.io/sample-app-web/ZoomMtg.html#preLoadWasm](https://zoom.github.io/sample-app-web/ZoomMtg.html#preLoadWasm)

 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/c36d10e04f248b15824fd20eab05c843a83141f3.png)

---

<div class="post-metadata">

**Author:** ![washington.bruno](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/washington.bruno/32/46467_2.png) [@washington.bruno](https://devforum.zoom.us/u/washington.bruno)\
**Post date:** [April 22, 2019, 12:54pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/9 "2019-04-22T12:54:05Z")

</div>

Thanks for the reply.  
The CDN version works well, but I did not want to have to use the zoom SDK in an iframe, but locally importing via npm.  
At the moment this is the only alternative?  
Thank’s for your time

---

<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:** [May 22, 2019, 1:10pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/11 "2019-05-22T13:10:38Z")

</div>

note: we change jssdk name to websdk

> **[xinton/vue-zoomus-jssdk-sample](https://github.com/xinton/vue-zoomus-jssdk-sample)**
>
> Integrate Zoom SDK with Vue. Contribute to xinton/vue-zoomus-jssdk-sample development by creating an account on GitHub.

here is a demo use vue and zoom websdk npm version.  
the root cause is the vue can’t provide a proxy to access the websdk static resource which located in node\_moduls/zoomus-jssdk/  
so need to use the CDN to solve the websdk dependencies.  
ZoomMtg.setZoomJSLib(‘[https://dmogdx0jrul3u.cloudfront.net/{WEBSDK\_VERSION}/lib](https://dmogdx0jrul3u.cloudfront.net/%7BWEBSDK_VERSION%7D/lib)’, ‘/av’);

---

<div class="post-metadata">

**Author:** ![smartpodium](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/smartpodium/32/12240_2.png) [@smartpodium](https://devforum.zoom.us/u/smartpodium)\
**Post date:** [July 21, 2020, 6:39pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/13 "2020-07-21T18:39:44Z")

</div>

hello jack

I fellow your note and I change jssdk name to websdk as you said  
but I am getting an error ($ is not defined) like the picture attached

could you please help me

 ![vue](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6b05dcea689726bb2438d75e143fe8a26a1ef01f.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:** [July 22, 2020, 6:25pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/14 "2020-07-22T18:25:59Z")

</div>

Hey @smartpodium,

Please follow the official Web SDK guide here:

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

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![samdeveloper404](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@samdeveloper404](https://devforum.zoom.us/u/samdeveloper404)\
**Post date:** [August 19, 2020, 11:15am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/15 "2020-08-19T11:15:01Z")

</div>

Hi @tommy I’m new to Vue and also it’s my first time that i’m integrating zoom with my Laravel+vue project.  
I’m facing same problem like this.  
I read the documentation but I’m still unable to solve this error.

bellow script tag is already included in my main file which is welcome.blade.php

```
 <script src="{{ asset('assets/vendor/jquery/dist/jquery.min.js') }}"></script>

```

before that i was getting 404 error for including below files from node\_modules so i copied zoom folder so static folder.  
and added these in head ( i copied zoomus folder from node\_modules to my public/assets/zoomData folder)

```
    <link type="text/css" rel="stylesheet" href="{{ asset('assets/zoomData/websdk/dist/css/bootstrap.css')}}" />
    <link type="text/css" rel="stylesheet" href="{{ asset('assets/zoomData/websdk/dist/css/react-select.css')}}" />
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

```

and this below code is in my vue component file in script tag

```
import { ZoomMtg } from '@zoomus/websdk';
ZoomMtg.setZoomJSLib("assets/zoomData/websdk/dist/lib", '/av'); 
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

```

please mention something i’m doing wrong.

i installed zoomsdk using

```
 npm install @zoomus/websdk --save

```

dependencies in my package.json

 ![Screenshot (199)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/54ff570c8f2d62076b09e84086a4e7a43f29727e.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:** [August 20, 2020, 3:48pm UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/16 "2020-08-20T15:48:38Z")

</div>

Hey @samdeveloper404,

Your steps look correct. Can you please share the error you are getting and screenshots?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![samdeveloper404](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@samdeveloper404](https://devforum.zoom.us/u/samdeveloper404)\
**Post date:** [August 25, 2020, 11:28am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/17 "2020-08-25T11:28:47Z")

</div>

Hi @tommy thanks for reply. i jumped to another work because i was unable to solve it and i did not noticed your reply… I am sorry for that… i am still getting errors see below.

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

---

<div class="post-metadata">

**Author:** ![samdeveloper404](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@samdeveloper404](https://devforum.zoom.us/u/samdeveloper404)\
**Post date:** [August 25, 2020, 11:29am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/18 "2020-08-25T11:29:21Z")

</div>

403 error do not know what is wrong… api key and secret are correct

---

<div class="post-metadata">

**Author:** ![samdeveloper404](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@samdeveloper404](https://devforum.zoom.us/u/samdeveloper404)\
**Post date:** [August 25, 2020, 11:34am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/19 "2020-08-25T11:34:39Z")

</div>

![Screenshot (209)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/ceb7632043944bd6e17e2144b8f746ba1f83e279.png)

---

<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:** [August 26, 2020, 2:47am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/20 "2020-08-26T02:47:45Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/c1eba6bf2c29aa37e4b55ffaa3e39e0331d11552.png)  
@samdeveloper404, make sure you use websdk1.7.10. you can set  
ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/1.7.10/lib](https://source.zoom.us/1.7.10/lib)’, ‘/av’);  
the correct download wasm link is [https://source.zoom.us/1.7.10/lib/av/5510\_audio.encode.wasm](https://source.zoom.us/1.7.10/lib/av/5510_audio.encode.wasm)

---

<div class="post-metadata">

**Author:** ![samdeveloper404](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@samdeveloper404](https://devforum.zoom.us/u/samdeveloper404)\
**Post date:** [August 26, 2020, 9:34am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/21 "2020-08-26T09:34:57Z")

</div>

Hi @JackYang !  
i am using same as you mentioned

```
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.10/lib', '/av');

```

but these error still exist

---

<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 28, 2020, 5:46am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/22 "2020-08-28T05:46:31Z")

</div>

Hey @samdeveloper404,

Where in your code are you putting that line? Can you please share your Web SDK code so we can help debug?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![samdeveloper404](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@samdeveloper404](https://devforum.zoom.us/u/samdeveloper404)\
**Post date:** [August 28, 2020, 11:05am UTC](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912/23 "2020-08-28T11:05:52Z")

</div>

@tommy i got help from [https://github.com/sartikadhaslam/laravel-vue-zoomwebsdk](https://github.com/sartikadhaslam/laravel-vue-zoomwebsdk)  
and with that help i completed it .  
Thank you for your help!

[Next page](https://devforum.zoom.us/t/trying-to-include-the-js-sdk-into-an-exisiting-vuejs-project/3912.md?page=2)
