# ReferenceError: window is not defined when trying to integrate websdk

**URL:** <https://devforum.zoom.us/t/referenceerror-window-is-not-defined-when-trying-to-integrate-websdk/38575>\
**Category:** Web\
**Created:** [December 16, 2020, 7:35pm UTC](https://devforum.zoom.us/t/referenceerror-window-is-not-defined-when-trying-to-integrate-websdk/38575 "2020-12-16T19:35:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![96anton96mail](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/96anton96mail/32/20241_2.png) [@96anton96mail](https://devforum.zoom.us/u/96anton96mail)\
**Post date:** [December 16, 2020, 7:35pm UTC](https://devforum.zoom.us/t/referenceerror-window-is-not-defined-when-trying-to-integrate-websdk/38575/1 "2020-12-16T19:35:37Z")

</div>

**Description**  
I installed and got the sample-app-web running. Then I tried to use websdk in my own app and run into error.

**Error**  
ReferenceError: window is not defined  
at Object.\<anonymous (/home/anton/ZoomBots/js/node\_modules/@zoomus/websdk/dist/zoomus-websdk.umd.min.js:2:504)

**Which version?**  
1.8.3

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. git clone [https://github.com/antonprokopovich/ZoomBots.git](https://github.com/antonprokopovich/ZoomBots.git)
2. cd ZoomBots/js
3. node index.js

**Device:**

- Device: dell g5 5590
- OS: Ubuntu 18.04.5 LTS (bionic)
- Browser: Chrome

**Additional context**  
I’m completely new to node and js in general so maybe I’m missing something related to them.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 17, 2020, 10:07pm UTC](https://devforum.zoom.us/t/referenceerror-window-is-not-defined-when-trying-to-integrate-websdk/38575/2 "2020-12-17T22:07:36Z")

</div>

Hey @96anton96mail,

Thank you for reaching out to the Zoom Developer Forum. Our team has recently created a beta sample app that shows how you can use the Zoom Web SDK with react. Please see the following forum post for more details:

> [@Zoom web sdk shows blank screen after a loader "Joining meeting"](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/4):
>
> Hey @krrish, Since you are using the Web SDK in React, can you checkout this React sample app I have made: Thanks, Tommy

Thanks,  
Max

---

<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:** [January 17, 2021, 8:07am UTC](https://devforum.zoom.us/t/referenceerror-window-is-not-defined-when-trying-to-integrate-websdk/38575/3 "2021-01-17T08:07:48Z")

</div>

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