Cannot be used with Electron on Windows
See original GitHub issueIt would appear that it is not possible to run with Electron on Windows.
When run if built for node, the following message pops up :
App threw an error during load Error: The module ‘\?\C:\Users{SNIP}\rclnodejs\build\Release\rclnodejs.node’ was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 73. Please try re-compiling or re-installing the module (for instance, using
npm rebuild
ornpm install
). at process.func (electron/js2c/asar.js:138:31) at process.func [as dlopen] (electron/js2c/asar.js:138:31) at Object.Module._extensions…node (internal/modules/cjs/loader.js:828:18) at Object.func (electron/js2c/asar.js:138:31) at Object.func [as .node] (electron/js2c/asar.js:138:31) at Module.load (internal/modules/cjs/loader.js:645:32) at Function.Module._load (internal/modules/cjs/loader.js:560:12) at Module.require (internal/modules/cjs/loader.js:685:19) at require (internal/modules/cjs/helpers.js:16:16) at bindings (C:\Users{SNIP}\rclnodejs\node_modules\bindings\bindings.js:112:48)
When I try to rebuild it for Electron using electron-rebuild, the build always fails, due to missing headers and dependencies. Once I manually resolve all those errors and it finally builds, running it for electron gives : “rclnodejs.node” is not a module.
When run for Node, without Electron, it works as expected.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Hi @fstojanovic, are you able to resolve this issue
@koonpeng @fstojanovic does
rclnodej
s build withelectron
on WSL2 Ubuntu 20.04?Thanks all!