Hello,
I try to run electron app with pc-ble-driver-js and I have this error:
Error: The module '\\?\C:\app\build\Release\pc-ble-driver-js-sd_api_v2.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 67. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
electron: v4.1.3
node: v11.15.0
pc-ble-driver-js: v2.6.2
Edit: tried with electron version 5.0.0, 6.0.0, 7.0.0 and the latest, and the error has not disappeared
How to reproduce:
1. Download source code and pc-ble-driver-js-sd_api_v3-v2.6.2-electron-v5.0-win32-x64.tar.gz from https://github.com/NordicSemiconductor/pc-ble-driver-js/releases
2. npm install [email protected] --save-dev
3. change launch.json :
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
"args" : ["."],
"outputCapture": "std"
}
]
}