You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When on electron-builder v24.6.4 I get below errors when building, yet the application opens and runs perfectly. When i manually update the yarn.lock file to have an updated version of node-abi it builds properly, but the application crashes on opening.
Building with v24.6.4 (working with failed rebuild)
To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
• writing effective config file=dist/builder-effective-config.yaml
• rebuilding native dependencies [email protected] platform=darwin arch=x64
• install prebuilt binary name=better-sqlite3 version=8.5.2 platform=darwin arch=x64 napi=
• build native dependency from sources name=better-sqlite3
version=8.5.2
platform=darwin
arch=x64
napi=
reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
error=/Users/coltonshaw/Desktop/scripts/pcomvp-desktop/node_modules/prebuild-install/node_modules/node-abi/index.js:39
throw new Error('Could not detect abi for version ' + target + ' and runtime ' + runtime + '. Updating "node-abi" might help solve this issue if it is a new release of ' + runtime)
^
Error: Could not detect abi for version 26.1.0 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
at getAbi (/Users/coltonshaw/Desktop/scripts/pcomvp-desktop/node_modules/prebuild-install/node_modules/node-abi/index.js:39:9)
at module.exports (/Users/coltonshaw/Desktop/scripts/pcomvp-desktop/node_modules/prebuild-install/rc.js:54:57)
at Object.<anonymous> (/Users/coltonshaw/Desktop/scripts/pcomvp-desktop/node_modules/prebuild-install/bin.js:8:27)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
Node.js v20.5.1
24.6.4
v20.5.1
When on electron-builder v24.6.4 I get below errors when building, yet the application opens and runs perfectly. When i manually update the
yarn.lock
file to have an updated version of node-abi it builds properly, but the application crashes on opening.Building with v24.6.4 (working with failed rebuild)
yarn.lock update
The text was updated successfully, but these errors were encountered: