The new electron version 9.0.1 is causing an error during build also existing installations fail to launch with a Javascript exception.
I did try removing the package and doing a clean build but the issue persists.
Here is the stacktrace:
An unhandled error occurred inside electron-rebuild
Could not detect abi for version 9.0.1 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
Error: Could not detect abi for version 9.0.1 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
at Object.getAbi (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/node-abi/index.js:30:9)
at new Rebuilder (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/rebuild.js:126:28)
at rebuildWithOptions (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/rebuild.js:404:23)
at Object.doRebuild [as rebuild] (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/rebuild.js:427:16)
at /home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/cli.js:120:33
at Generator.next (<anonymous>)
at fulfilled (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/cli.js:6:58)
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
This seems to be an upstream problem since electron 9 is still not supported: https://github.com/marktext/marktext/issues/2128
I am posting here in case there is a workaround or if the PKGBUILD needs to be updated when the time comes.
Pinned Comments
alerque commented on 2023-11-02 11:09 (UTC)
PSA: The build process for this package is known to be broken because it requires older versions of stuff than is available in Arch now. The only way I know of to install it is to use packages that were built back when the
npm
in Arch was older. You can use my user repository to get the latest successful build.