-
Notifications
You must be signed in to change notification settings - Fork 194
Not working with Electron 4.0.1 on Windows #149
Comments
Same, here, except I'm experiencing the issue on Windows and on macOS. I've tried using several different versions of Node (8.12, 8.15, 10.15) on both Windows 10 as well as on macOS 10.13.6, with little success. On Windows, keytar 4.3.0 throws the following error (even though keytar.node exists at the given path):
macOS throws a different error:
I've had limited success using keytar 4.2.1 with a local project using Electron 4.0.1, configured with It appears other devs have run into this issue as well, as it's referenced in electron-builder#3590, but even after following the suggestions given in that thread, I'm still receiving errors. |
@dcpesses To get past the keytar.node not found error, try adding If you can get past that error, I'll be interested to hear if you have the issue that I'm having with Electron 4.0.1. |
@emusgrave Actually I tried that same command with What might work, is forking the repo and removing |
This seems to be a widespread bug. I got the same issue running on a mac with keytar version 4.3.0 and electron 4.0.1, but downgrading to electron 3.1.1 worked for me... |
Not working with electron >=4.0.0 both on macOs Mojave and Windows 10 1803 |
I think we need to wait on electron/node-abi#55 because of changes to ABI compatibility and how Electron 4 is built. |
Closing this out in favour of the earlier report #133. I'll update that issue to make it clearer it's a broad problem. |
@shiftkey Thanks for pointing me towards that issue, but I still don't think the title of that issue captures the depth of the problem. Electron 4 is the mainline release now, and as it stands today, I can't figure out any way to get keytar to work with it, manually or otherwise. Until this is solved, you may even want a banner on the readme that explains that this library cannot be used with Electron 4. The goal is simply to save people time. I burned a few hours trying to figure this out before just downgrading to Electron 3. |
I've got a test build running on Electron
Want to open a PR and start this off? I'm happy to review and get something up asap. |
This is not true. I successfully use |
getting this same issue @vladimiry , any idea how I can build from source? Will this work building windows packages on a mac? |
@adeperio make sure you use the latest |
@vladimiry oh ok. I think I'm already pointing to the latest keytar (4.4.0?) and I'm still getting this problem (using Electron 4.0.4). I'm building with electron-builder (trying to build a win 64 exe on a mac) with the following build config:
Is there anything else you think I could be doing? |
Try this way:
It's unlikely that you will be able to compile native modules for windows on mac. Native modules need to be compiled on respective platforms (win/mac/linux), for example using Appveyor and Travi CI. |
@vladimiry I think that's where I have been heading down the wrong direction. I was on Electron 1.8.6 and have been using prebuilds successfully to build Windows on a mac machine. But in the upgrade to Electron 4.0.4, I lost this ability with node-hid, another native dep. node-hid only supported up to Electron < 2.0 I think and still don't have prebuilds for the latest electron. This may not be a keytar issue and may actually be a problem with node-hid. In the mix up, I think I was rebuilding ALL native dependencies. But maybe I can use your instructions on the node-hid library first, and revert back to using the prebuilds with keytar? Thanks for sending those through. I'll report back and see what I come up with. |
@adeperio check out the latest release for |
Thanks @shiftkey yep latest release of node-hid is working. Still waiting on keytar I think |
Using Electron 4.0.1, Keytar 4.3.0, Windows 10.
Starting from electron-quick-start, adding keytar, and calling
Results in
errno 3228369023
I've tried pulling keytar from master and rebuilding, since there are some recent commits that attempt to address Electron 4 compatibility, but I still get the same error.
If I downgrade to Electron 3.1.1 then it works as expected.
The text was updated successfully, but these errors were encountered: