After having played with the websdk with CDN files (1.8.0), I installed locally with npm but the zoomus-websdk.umd.min.js (1.8.1) is built for ES6, not ES5 and does not load properly in browser
Uncaught TypeError: Cannot read property ‘Component’ of undefined
at zoomus-websdk.umd.min.js:2
at Object. (zoomus-websdk.umd.min.js:2)
at n (zoomus-websdk.umd.min.js:2)
at Object. (zoomus-websdk.umd.min.js:2)
at n (zoomus-websdk.umd.min.js:2)
at Object. (zoomus-websdk.umd.min.js:2)
at n (zoomus-websdk.umd.min.js:2)
at Object. (zoomus-websdk.umd.min.js:2)
at n (zoomus-websdk.umd.min.js:2)
at Object. (zoomus-websdk.umd.min.js:2)
the NPM one installed with npm install @zoomus/websdk@1.8.1: node_modules/@zoomus/websdk/dist/zoomus-websdk.umd.min.js
first line: // [Zoom Meeting Web Client WebSDK] 1.8.1_20200921_ES6_release - Monday, September 21st, 2020, 10:06:48 AM
This comment in itself is not a problem, but if you link this file without using a transpiler, javascript will choke because apart from being ES6, the NPM code relies on things like “require”, not really browser friendly
I plan to use the websdk in a single web page, and using npm will assure me of being up-to-date, but I think a UMD file should be used without needing to be transpiled to be used.
single steps to reproduce: just put this into a html page (after installing with npm of course):