Previously reported in #53 #54 #55 #56 #57 #58 #61 #63 . Creating one issue to keep track of this.
There are now workaround instructions here: https://github.com/journeyapps/node-sqlcipher#usage-with-electron-forge--electron-rebuild
It would still be great to find a solution that works without additional configuration.
There are multiple issues with electron-rebuild (which is also used by default with electron-forge) attempting to rebuild this module.
It does not support {napi_build_version} in the module_path. See Incorrect folder name when rebuilding "sqlite3" for arm64/x64 architecture electron/rebuild#554 / Cannot rebuild sqlite3 electron/rebuild#546 .
It does not use the pre-built modules. See node-pre-gyp support in the same way than prebuild is supported electron/rebuild#367 .
When building from source, there is something wrong in the build environment causing a compile error (Build fails on Windows with Electron 11: 'napi_is_detached_arraybuffer': identifier not found #63 ).
The workaround is to disable rebuilding of this module with electron-rebuild. However, there are still potential issues:
If the node version and electron versions don't match, the correct N-API version would not be installed automatically.
When cross-compiling for a different architecture or platform, the correct N-API version would not be installed automatically.
Disabling N-API v6 support would solve (1) above, but not (2). It would also remove worker_thread support, which is not ideal.
Previously reported in #53 #54 #55 #56 #57 #58 #61 #63. Creating one issue to keep track of this.
There are now workaround instructions here: https://github.com/journeyapps/node-sqlcipher#usage-with-electron-forge--electron-rebuild
It would still be great to find a solution that works without additional configuration.
There are multiple issues with electron-rebuild (which is also used by default with electron-forge) attempting to rebuild this module.
{napi_build_version}in themodule_path. See Incorrect folder name when rebuilding "sqlite3" for arm64/x64 architecture electron/rebuild#554 / Cannot rebuild sqlite3 electron/rebuild#546.The workaround is to disable rebuilding of this module with electron-rebuild. However, there are still potential issues:
Disabling N-API v6 support would solve (1) above, but not (2). It would also remove worker_thread support, which is not ideal.