# Window is not defined

**URL:** <https://devforum.zoom.us/t/window-is-not-defined/64230>\
**Category:** Web\
**Created:** [February 12, 2022, 5:01pm UTC](https://devforum.zoom.us/t/window-is-not-defined/64230 "2022-02-12T17:01:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1nazarovumar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/1nazarovumar/32/34942_2.png) [@1nazarovumar](https://devforum.zoom.us/u/1nazarovumar)\
**Post date:** [February 12, 2022, 5:01pm UTC](https://devforum.zoom.us/t/window-is-not-defined/64230/1 "2022-02-12T17:01:51Z")

</div>

**Description**  
window is not defined in my next js app  
I’m wraping my \_app.js content with @zoom1234/videosdk.

**Browser Console Error**  
Window is not defined

**Which Web Video SDK version?**  
“@zoom1234/videosdk”: “^1.1.7”,

**Video SDK Code Snippets**  
\_app.js file. I also tried with dynamic imports but nothing changed

```auto
import dynamic from 'next/dynamic';
import { Provider } from 'react-redux'
import configStore from '../redux/store'

import { ChakraProvider } from '@chakra-ui/react'

import '../styles/globals.css'

import ZoomVideo from '@zoom/videosdk';
import ZoomContext from '../context/ZoomClientContext';

const store = configStore()
const client = ZoomVideo.createClient();

function MyApp({ Component, pageProps }) {
  return (
    <ZoomContext.Provider value={client}>
      <Provider store={store}>
        <ChakraProvider>
          <Component {...pageProps} />
        </ChakraProvider>
      </Provider >
    </ZoomContext.Provider>
  )
}

export default MyApp

```

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/b/7b9dd52931b5cc3104afb437fea4bab7f0a162fb.png)

Any help highly appreciated!

---

<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:** [March 15, 2022, 3:02am UTC](https://devforum.zoom.us/t/window-is-not-defined/64230/2 "2022-03-15T03:02:20Z")

</div>

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