-
Notifications
You must be signed in to change notification settings - Fork 114
Using usb-detection with electron #137
Comments
Which version of Electron are you using? Have you tried any of the solutions from a Google, I see that you tried using
Possible solution from the same thread: atom/node-keytar#215 (comment) Other than what you can already find on Google, I don't have any insight on using this with Electron. |
The problem apparently has to do with the way electron loads native modules. This electron/electron#18397 post describes this issue. The Issue I describe has to do with the fact that usb-detection is simply not compatible with electron at the moment. |
I did manage to make usb-detection work with electron (had other issues with the way the react flow works) without major incidents. I did a regular With those fixes, I managed to make it work inside electron, but I did have issues because I'm not mainly a react programmer and I don't quite understand the concept of the updates and generation of components, so I ended up creating multiple USB listeners each time the page reloaded, hehehe. Hope this helps! |
@sensslen I'm happy to report usb-detection is very much compatible with Electron! We have been using it in the Opentrons App for more than a year (starting with Feel free to hit me up the the usb-detection gitter if you're looking for advice about how we use usb-detection in the Opentrons App. I can't speak for the development of the package itself, but I can speak as a user of the package. If this ticket is specifically about using usb-detection in the renderer process, I'd say it's a duplicate of #102 |
Hi there, I am trying to use usb-detection in combination with electron. I do have rebuilt using electron-rebuild but when executing usb-detection functions I get:
Please feel free to check out the code that produces the issue here: https://github.com/sensslen/Cgf.CameraControl.Main.Gui
Get the issue by going to file->LoadConfiguration loading the following dummy file:
I am currently stuck. Any help would be highly appreciated!
The text was updated successfully, but these errors were encountered: