Zoom-sdk-electron problem

i do everything like git course told%E5%B4%A9%E6%BA%83%E9%97%AE%E9%A2%98

Well, if you check the change log, you will find this

CHANGELOG

2018-10-29

  • Upgrade Node.js to v8.12.0 and Electron to v2.0.7

The Node.js is updated according to security issus. Please update your node.js.

Regards,
Wilmer

not work
reinstall node.js v8.12,still error

Would you post the error information here?
BTW, Zoom windsdk electron only supports ia32(32bits) now. Please use 32bits electron version to run it.

Regards,
Wilmer

Error: The specified module could not be found.
\?\E:\zoom-winsdk-electron-master\zoom-sdk-electron\lib\node_modules\zoomsdk\build\Release\zoomsdk.node
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
at Object.Module._extensions…node (internal/modules/cjs/loader.js:722:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (internal/modules/cjs/loader.js:640:17)
at require (internal/modules/cjs/helpers.js:20:18)
at init (E:\zoom-winsdk-electron-master\zoom-sdk-electron\lib\zoom_sdk.js:76:17)
at Object.getInstance (E:\zoom-winsdk-electron-master\zoom-sdk-electron\lib\zoom_sdk.js:205:20)

use node.js v8.12.0 and electron 32bits,but still error.

Yes, there is a bug.

Please modify the zoom_sdk.js file manually.
line 74: var _path = clientOpts.path || ‘./build/Release/’
Changed the path to a correct one:
var _path = clientOpts.path || ‘./node_modules/zoomsdk/build/Release/’.

I am sorry for that!

Regards,
Wilmer

i found that,thanks!

Sorry. The path in the demo ‘main.js’ should also be modified.

Just modify the line 8 and set it to be a folder where the node is.

Regards,
Wilmer

hello again,can i use electron-vue to write this?

To be honest, I have no idea about electron-vue.

Zoom electron sdk is built with node 8.12.0, electron2.0.7 and python2.7. If the tools that you use are compatible with them, I think you can use them to write your code.

Regards,
Wilmer

i have webpack problem,but i’m not sure.
i’m sure i use right path,and i install node-loader,but still Error

Error: Cannot find module ‘…/…/ZoomSDK/zoomsdk’
at webpackEmptyContext (webpack:///./static/lib_sync?:2:10)
at init (webpack:///./static/lib/zoom_sdk.js?:65:71)
at Object.getInstance (webpack:///./static/lib/zoom_sdk.js?:154:28)
at eval (webpack:///./src/main/index.js?:18:34)
at Module…/src/main/index.js (C:\Users\Administrator\Desktop\SanYanWa\dist\electron\main.js:506:1)
at webpack_require (C:\Users\Administrator\Desktop\SanYanWa\dist\electron\main.js:21:30)
at eval (webpack:///./src/main/index.dev.js?:11:1)
at Object…/src/main/index.dev.js (C:\Users\Administrator\Desktop\SanYanWa\dist\electron\main.js:494:1)
at webpack_require (C:\Users\Administrator\Desktop\SanYanWa\dist\electron\main.js:21:30)
at eval (webpack:///multi_./src/main/index.dev.js_./src/main/index.js?:1:1)

Would you please verify whether the demo can work well first?

If the demo can work, the error you met is caused by the wrong usage of the sdk. Please refer to the demo to write your code.
If the demo can’t work. that means your environment doesn’t fit to using the sdk.

Regards,
Wilmer

yes,demo work well.thanks for your patience.
i made some simple style changes and it still worked.and then i’m tring use vue.js.
i found a framework named ‘electron-vue’ and it throw errors.
i guess it’s webpack configuration problem,but i’m not sure.
can i use vue.js and zoomsdk at sametime?

I am really sorry because I do have no idea about vue. I can not give you any advisement.

Regards,
Wilmer

你好,这个electron-vue我们也在使用,我现在也遇到了这个问题,讲zoom-sdk-electron 引入到electron-vue的项目,好像也遇到了webpack的问题,你有解决了嘛

Hi hjh22343,

Thanks for using Zoom SDK. 请问一下Wilmer在上面提供的解决方法对你有帮助嘛?如果你尝试了上面提供的方法还遇到了问题,能否提供一下以下的信息呢?

Description
A clear and concise description of what the question is.

Which version?
Knowing the version can help us to identify your issue faster.

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

期待您的回复,谢谢!

我解决了,参考这个pr https://github.com/zoom/zoom-sdk-electron/pull/1

1 Like

我也是这么写的,谢谢你的提醒,你们现在在使用electron-sdk开发zoom嘛

Thanks for sharing the solution. Happy Zooming! :slight_smile:

对,我们用 zoom-sdk-electron 两年多了,有问题可以交流