Julusian / node-elgato-stream-deck

A Node.js library for interfacing with the Elgato Stream Deck. https://julusian.github.io/node-elgato-stream-deck/
https://www.npmjs.com/org/elgato-stream-deck
MIT License
163 stars 21 forks source link

Error: Failed to find binding for HID_hidraw #90

Closed ibito closed 4 months ago

ibito commented 5 months ago

When using npm start it works flawlessly, however, when I build the app, I get Error: Failed to find binding for HID_hidraw

It's worth saying I'm using node 20 and electron 26

Julusian commented 4 months ago

This is likely happening because your electron build process is not making sure that the node-hid prebuilds are copied into the binary. I think this should be done for you automatically, but maybe it isn't always.

There isn't anything to do in this library for this, https://github.com/node-hid/node-hid is a better place, but will need some more details to be able to help at all