I’m running into errors using the WebSDK due to a lodash conflict posed by another script (Coveo search) loading AFTER the zoom lodash dependency which has its own custom lodash build baked into it. The specific error i’m seeing is “_.isNil() is not a function” when running the ZoomMtg.join() method. So what’s essentially happening is this:
- Zoom loads it’s lodash dependency, exposing a global _ object.
- Our Coveo script loads in at the end of the body and overwrites Zoom’s _ object with it’s own _ object (which doesn’t contain the _.isNil method.
- When Zoom runs it’s ZoomMtg.init() and ZoomMtg.join() methods, it’s accessing the Coveo lodash object and throwing the “_.isNil() is not a function” error because the Coveo lodash build doesn’t contain the .isNil function.
I know that Lodash comes with a _.noConflict method that can be leveraged to solve cases like this, but because we’re using CDN dependencies from both Zoom and Coveo, I can’t modify one or the other to make this work.
Are you aware of any ways to solve for this? Coveo is loaded into every page on our site and we can’t really remove it or we won’t have search functionality.
Any ideas would be appreciated!
Which Web Meeting SDK version?