# Zoom for Nuxt JS (Vue JS)

**URL:** <https://devforum.zoom.us/t/zoom-for-nuxt-js-vue-js/8268>\
**Category:** Web\
**Created:** [February 26, 2020, 8:09am UTC](https://devforum.zoom.us/t/zoom-for-nuxt-js-vue-js/8268 "2020-02-26T08:09:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dhanushka.sandaruwan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dhanushka.sandaruwan/32/2137_2.png) [@dhanushka.sandaruwan](https://devforum.zoom.us/u/dhanushka.sandaruwan)\
**Post date:** [February 26, 2020, 6:00pm UTC](https://devforum.zoom.us/t/zoom-for-nuxt-js-vue-js/8268/3 "2020-02-26T18:00:26Z")

</div>

Hi @tommy Thanks for replying.

We come up with the solution of “Window not define issue” using below code.  
And the come up with the solution of “Black screen” using below post.

> [@Zmmtg-root intervenes on before calling zoom overlay](https://devforum.zoom.us/t/zmmtg-root-intervenes-on-before-calling-zoom-overlay/7003/2):
>
> Hey @radhesh.tantri, thanks for posting and using Zoom! Since the Web SDK overlays the whole page, I suggest using [CSS to hide / show](https://www.sitepoint.com/five-ways-to-hide-elements-in-css/) respectively when you want to. Checkout this thread: We are working on a more customizable one for next year that allows you to invoke on demand. Thanks, Tommy

**Now the issue is this.**

> zoomus-websdk.umd.min.js?478e:2 Uncaught TypeError: $.ajax is not a function  
> at i (zoomus-websdk.umd.min.js?478e:2)  
> at y (zoomus-websdk.umd.min.js?478e:2)  
> at Object.join (zoomus-websdk.umd.min.js?478e:2)  
> at Object.success (ZoomWindow.vue?2b25:33)  
> at z (zoomus-websdk.umd.min.js?478e:2)  
> at t.value (zoomus-websdk.umd.min.js?478e:2)  
> at m (zoomus-websdk.umd.min.js?478e:2)  
> at Object.init (zoomus-websdk.umd.min.js?478e:2)  
> at VueComponent.mounted (ZoomWindow.vue?2b25:29)  
> at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)

_ **Below is the code** _

**zoom.client.js**

```
import Vue from 'vue'

import { ZoomMtg } from '@zoomus/websdk';

console.log("checkSystemRequirements");

console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

// CDN version default

ZoomMtg.setZoomJSLib('https://dmogdx0jrul3u.cloudfront.net/1.3.7/lib', '/av'); 

ZoomMtg.preLoadWasm();

ZoomMtg.prepareJssdk();

var API_KEY = "we use our own key";

var API_SECRET = "we use our own key";

const MeetingCfg = (meetingId, nickname) => ({

  apiKey: API_KEY,

  apiSecret: API_SECRET,

  meetingNumber: meetingId,

  userName: nickname,

  passWord: "we use meeting crated password",

  leaveUrl: "https://zoom.us",

  role: 0

})

// what variable you hook into Vue's prototype will be available on ANY vue component

Vue.prototype.$ZoomMtg = ZoomMtg

Vue.prototype.$MeetingCfg = MeetingCfg

```

**ZoomWindow.vue**

```
<template>

    <div>
    </div>

</template>

<script>

export default {

  props: {

    nickname: String,

    meetingId: String

  },

  mounted () {

    const meetConfig = this.$MeetingCfg(this.meetingId, this.nickname)

    const ZoomMtg = this.$ZoomMtg

    // Generate Signature function

    const signature = ZoomMtg.generateSignature({

      meetingNumber: meetConfig.meetingNumber,

      apiKey: meetConfig.apiKey,

      apiSecret: meetConfig.apiSecret,

      role: meetConfig.role,

      success: function(res) {

        // eslint-disable-next-line

        console.log("success signature: " + res.result);

      }

    });

    // join function

    ZoomMtg.init({

      leaveUrl: "http://www.zoom.us",

      isSupportAV: true,

      success: () => {

        ZoomMtg.join({

          meetingNumber: meetConfig.meetingNumber,

          userName: meetConfig.userName,

          signature: signature,

          apiKey: meetConfig.apiKey,

          userEmail: "email@gmail.com",

          passWord: meetConfig.passWord,

          success: function(res) {

            // eslint-disable-next-line

            console.log("join meeting success");

          },

          error: function(res) {

            // eslint-disable-next-line

            console.log(res);

          }

        });

      },

      error: function(res) {

        // eslint-disable-next-line

        console.log(res);

      }

    });

  }

};

</script>

```

**zoom.vue**

```
<template>

  <zoom-window />

</template>

<script>

import ZoomWindow from '~/components/ZoomWindow'

export default {

  components: {

    ZoomWindow

  }

}

</script>

```

**nuxt.config.js**

```
plugins: [

    '~/plugins/zoom.client.js'

  ],

```

---

_[View the full topic](https://devforum.zoom.us/t/zoom-for-nuxt-js-vue-js/8268)._
