I have a create-react-app, in development it’s working fine, but on production trigger this error
backend.js:1 TypeError: Super expression must either be null or a function, not undefined
at zoomus-jssdk.umd.min.js:38208
at zoomus-jssdk.umd.min.js:38207
at Object.e.exports (zoomus-jssdk.umd.min.js:38193)
at t (zoomus-jssdk.umd.min.js:38146)
at e.exports (zoomus-jssdk.umd.min.js:38150)
at Object.e.exports (zoomus-jssdk.umd.min.js:38138)
at n (zoomus-jssdk.umd.min.js:15)
at Object.e.exports (zoomus-jssdk.umd.min.js:10826)
at n (zoomus-jssdk.umd.min.js:15)
at Object.e.exports (zoomus-jssdk.umd.min.js:34240)
newer create-react-app webpack configs might be using TerserPlugin instead of UglifyJsPlugin
using keep_fnames: true (which also applies to TerserPlugin) might not be enough to prevent mangling zoom sdk’s code. In my case I had to remove TerserPlugin alltogether and will need to look for an alternative or look into config options more deeply.