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