ZOOm-JSSDK error

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({})
    ]
}

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

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

Hey @gabrielsmelo.dev,

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

If so, checkout the Angular sample app:

-Tommy

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.

Hey @gabrielsmelo.dev,

Happy to hear you got the issue sorted out! :slight_smile:

Thanks,
Tommy