# ZOOm-JSSDK error

**URL:** <https://devforum.zoom.us/t/zoom-jssdk-error/4456>\
**Category:** Web\
**Created:** [May 30, 2019, 3:40pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456 "2019-05-30T15:40:26Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![taushifali](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/taushifali/32/2065_2.png) [@taushifali](https://devforum.zoom.us/u/taushifali)\
**Post date:** [May 3, 2020, 10:46am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/22 "2020-05-03T10:46:45Z")

</div>

Hi @tommy,  
The error which was coming for us, while running web sdk on production:-

> super expression must either be null or a function, not undefined

We have managed to solve this by removing UglifyJsPlugin from webpack config. My dev environment webpack config don’t have UglifyJsPlugin thats why it was working in dev environment.

We had optimization block that have UglifyJsPlugin in prod webpack config, and this UglifyJsPlugin is not compatible with the zoom web sdk. Code snippet that was not working :-

```
  optimization: {
    minimizer: [
      new UglifyJsPlugin({
        cache: true,
        parallel: true,
        sourceMap: true
      }),
      new OptimizeCSSAssetsPlugin({})
    ]
  } 

```

In order to make zoom web sdk work we have to remove UglifyJsPlugin. I don’t think its best solution and what could be the possible reason for zoom web sdk not compatible with UglifyJsPlugin?

Working code for me, after removing UglifyJsPlugin is as below :\

```
 optimization: {
    minimizer: [
      new OptimizeCSSAssetsPlugin({})
    ]
}

```

---

<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:** [May 6, 2020, 8:08pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/23 "2020-05-06T20:08:49Z")

</div>

Hey @taushifali,

Happy to hear you got it working, thanks for sharing your solution!

We will look into the conflict with the UglifyJsPlugin.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![gabrielsmelo.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabrielsmelo.dev/32/9438_2.png) [@gabrielsmelo.dev](https://devforum.zoom.us/u/gabrielsmelo.dev)\
**Post date:** [August 24, 2020, 3:39pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/24 "2020-08-24T15:39:18Z")

</div>

Hi @tommy, any updates with that incompatibility with UglifyJs? I’m having the same issue now. After build, Zoom Web SDK doesn’t works and I receive that same message:

> super expression must either be null or a function, not undefined

---

<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 26, 2020, 7:25pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/25 "2020-08-26T19:25:16Z")

</div>

Hey @gabrielsmelo.dev,

Are you having this issue when using the Web SDK with Angular?

If so, checkout the Angular sample app:

> **[zoom/websdk-sample-angular](https://github.com/zoom/websdk-sample-angular)**
>
> Use the Zoom Web SDK in an Angular App. Contribute to zoom/websdk-sample-angular development by creating an account on GitHub.

-Tommy

---

<div class="post-metadata">

**Author:** ![gabrielsmelo.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabrielsmelo.dev/32/9438_2.png) [@gabrielsmelo.dev](https://devforum.zoom.us/u/gabrielsmelo.dev)\
**Post date:** [August 27, 2020, 1:30am UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/26 "2020-08-27T01:30:44Z")

</div>

Hi @tommy, no, I’m not using Angular.  
Actually, we’ve figured out that’s an issue between React (which the SDK uses) and UglifyJs.

After deactivating UglifyJs to my app section where I’m using Zoom Web SDK, it just worked okay without that weird error.

---

<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 27, 2020, 10:58pm UTC](https://devforum.zoom.us/t/zoom-jssdk-error/4456/27 "2020-08-27T22:58:35Z")

</div>

Hey @gabrielsmelo.dev,

Happy to hear you got the issue sorted out! 🙂

Thanks,  
Tommy

[Previous page](https://devforum.zoom.us/t/zoom-jssdk-error/4456.md?page=1)
