[error][macOS][M1][Electron][hid]
Dkdaniz opened this issue · 0 comments
Hi guys,
I am getting an architecture error because I am using an M1 mac chip of a different architecture than the standard intel X86.
[1] Error: dlopen(/Users/user/Documents/project/frontend/node_modules/usb/prebuilds/darwin-x64+arm64/node.napi.node, 0x0001): tried: '/Users/user/Documents/project/frontend/node_modules/usb/prebuilds/darwin-x64+arm64/node.napi.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
I already tried to use reactjs on top to try to get around this problem, but then I have another problem which is the user approval for reading in the browser, as I will be using React for frontend, electron as build engine it doesn't invoke the user permission.
I am using the following packages:
- @ledgerhq/hw-transport-node-hid
- @ledgerhq/hw-app-eth
Can someone give me a way to solve this problem?