-
Notifications
You must be signed in to change notification settings - Fork 378
"Error: cannot open device with path at new HID" on Electron build #439
Comments
I also had this problem. It's actually related to the I managed to solve this following this: node-hid/node-hid#321 |
i'm not really sure if we have the same problem as discussed in node-hid/node-hid#321 I know that this issue definitely happen if the usb connection has been acquired by another software / the device has been opened by another app like Ledger Live. |
I get that when my vm handles my nano s and I try to access it from the host machine. So the host machine can see it but when it tries to lock access to it, it fails. 🤷♂ Don't know if it's related. |
@juan-cortes yeah to me it's similar to what i mean by "some software have acquired the connection to the device". As soon as someone open() and do not close(), that error will happen on a second open() attempt. |
It used to work before, but stopped working after upgrading to macOS Catalina. Can it be OS related? |
node-hid/node-hid#321 seems to refer to this. I'm on Catalina and don't have any issue on Ledger Live but maybe we configured something for this. |
is there a solution to this issue yet? Seeing the same error on macOS Catalina |
Manual solution:
Automated solution via udev, see https://unix.stackexchange.com/a/85459 |
Hi,
I received this error while connecting to Nano Ledger S on a build version of my electron app.
getUSBConnection: Error: cannot open device with path at new HID (/Volumes/MyApp/MyApp.app/Contents/Resources/app.asar/node_modules/node-hid/nodehid.js:49) at Promise.resolve.then (TransportNodeHid.js:122) at <anonymous>
I am using these packages:
dependencies:
"@ledgerhq/hw-app-eth": "^5.3.0",
"@ledgerhq/hw-transport-node-hid": "^5.3.0",
"node-hid": "^1.1.0",
"usb": "^1.6.2"
devDependencies:
"electron-builder": "^21.2.0",
building on macOS Catalina v10.15.2
Any ideas why?
Thanks!
The text was updated successfully, but these errors were encountered: