LedgerHQ / ledgerjs

⛔️ MOVED to monorepo "ledger-live"
https://github.com/LedgerHQ/ledger-live
Apache License 2.0
575 stars 377 forks source link

[error][macOS][M1][Electron][hid] #864

Open Dkdaniz opened 2 years ago

Dkdaniz commented 2 years ago

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:

Can someone give me a way to solve this problem?