Issue Building Electron Zoom Meeting (Version 6.1.1) on Windows 11 with Node v18.15.0
Hi everyone,
I’m encountering an issue while building an Electron application that integrates Zoom Meeting (version 6.1.1) on my Windows 11 machine. Below are the details of my setup and the error messages I’m seeing:
Environment:
- OS: Windows 11
- Node.js version: 18.15.0
- Node-gyp version: 10.2.0
- Visual Studio: Community 2022 & 2019
Error Output:
C:\Users\devas\Documents\NativeX\ulp-live-class-electron\lib\node_add_on\zoom_node_render_addon.cpp(312,67): error C2039: 'Clear': is not a member of 'v8::Persistent<v8::Function,v8::CopyablePersistentTraits<v8::Function>>' [C:\Users\devas\Documents\NativeX\ulp-live-class-electron\build\zoomsdk_render.vcxproj]
C:\Users\devas\Documents\NativeX\ulp-live-class-electron\lib\node_add_on\zoom_node_render_addon.cpp(363,67): error C2039: 'Clear': is not a member of 'v8::Persistent<v8::Function,v8::CopyablePersistentTraits<v8::Function>>' [C:\Users\devas\Documents\NativeX\ulp-live-class-electron\build\zoomsdk_render.vcxproj]
C:\Users\devas\Documents\NativeX\ulp-live-class-electron\lib\node_add_on\zoom_node_render_addon.cpp(417,37): error C2039: 'Clear': is not a member of 'v8::Persistent<v8::Function,v8::CopyablePersistentTraits<v8::Function>>' [C:\Users\devas\Documents\NativeX\ulp-live-class-electron\build\zoomsdk_render.vcxproj]
C:\Users\devas\Documents\NativeX\ulp-live-class-electron\lib\node_add_on\zoom_node_render_addon.cpp(432,38): error C2039: 'Clear': is not a member of 'v8::Persistent<v8::Function,v8::CopyablePersistentTraits<v8::Function>>' [C:\Users\devas\Documents\NativeX\ulp-live-class-electron\build\zoomsdk_render.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\devas\AppData\Roaming\nvm\v18.15.0\node_modules\node-gyp\lib\build.js:216:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22631
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\Users\devas\Documents\NativeX\ulp-live-class-electron
gyp ERR! node -v v18.15.0
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok
It seems like the v8::Persistent<v8::Function, v8::CopyablePersistentTraits<v8::Function>>
type does not have a Clear
method. I’m not sure how to proceed with resolving this.
Has anyone encountered a similar issue or have any suggestions on how to fix this?
Thanks in advance for your help!