# Vue JS client initialization error

**URL:** <https://devforum.zoom.us/t/vue-js-client-initialization-error/58858>\
**Category:** Web\
**Created:** [October 14, 2021, 8:33am UTC](https://devforum.zoom.us/t/vue-js-client-initialization-error/58858 "2021-10-14T08:33:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![simkin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/simkin/32/31663_2.png) [@simkin](https://devforum.zoom.us/u/simkin)\
**Post date:** [October 14, 2021, 8:33am UTC](https://devforum.zoom.us/t/vue-js-client-initialization-error/58858/1 "2021-10-14T08:33:12Z")

</div>

**Description**  
A clear and concise description of what the question is.

i’m following the link

> **[Integrate SDK into your app - Getting started - Web - Video SDKs - Zoom...](https://marketplace.zoom.us/docs/sdk/video/web/build/integrate)**
>
> Integrate SDK into your app
> 
> 
> 
> Before using the Video SDK, you must:
> 
> Get an SDK key and secret for authentication. Login to the Zoom Marketplace and Cr...

so i npm installed the SDK and set up the

```
configureWebpack: {
    plugins: [
        new CopyPlugin({
            patterns: [{
                from:'node_modules/@zoom/videosdk/dist/lib',
                to:'public/zoomlib' 
            }]
        })
    ]
}

```

in my vue app, I do  
const client = ZoomVideo.createClient();  
client.init(‘en-US’, ‘/public/zoomlib’);

( i tried different paths to the zoom assets - none of them work. i’m not sure if it’s a path issue either)

**Browser Console Error**

vue.runtime.esm.js:1897 TypeError: Cannot read properties of undefined (reading ‘getDisplayMedia’)  
at Function.checkSystemRequirements (index.umd.js:1)  
at e.value (index.umd.js:1)  
at o.mounted (Zoom.vue:29)  
at rt (vue.runtime.esm.js:1863)  
at Un (vue.runtime.esm.js:4235)  
at Object.insert (vue.runtime.esm.js:3158)  
at O (vue.runtime.esm.js:6390)  
at wr. **patch** (vue.runtime.esm.js:6609)  
at wr.Rn.e.\_update (vue.runtime.esm.js:3960)  
at wr.r (vue.runtime.esm.js:4081)

**Which Web Video SDK version?**  
Knowing the version can help us to identify your issue faster. [e.g. 1.0]

**Video SDK Code Snippets**  
The code snippets that are causing the error / issue so we can reproduce.

**To Reproduce(If applicable)**

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Device (please complete the following information):**

- OS: [e.g. macOS 11]

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![simkin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/simkin/32/31663_2.png) [@simkin](https://devforum.zoom.us/u/simkin)\
**Post date:** [October 18, 2021, 6:24pm UTC](https://devforum.zoom.us/t/vue-js-client-initialization-error/58858/3 "2021-10-18T18:24:03Z")

</div>

i found the solution. i didn’t run the script under 127.0.0.1  
so it wasn’t a secure environment.

---

<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:** [October 29, 2021, 9:35pm UTC](https://devforum.zoom.us/t/vue-js-client-initialization-error/58858/4 "2021-10-29T21:35:33Z")

</div>

Happy to hear you found the solution @simkin ! 🙂

Thank you for sharing!

-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:** [November 29, 2021, 7:35am UTC](https://devforum.zoom.us/t/vue-js-client-initialization-error/58858/5 "2021-11-29T07:35:33Z")

</div>

Closed on November 29, 2021, 7:35am UTC

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