Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

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

Open
Dkdaniz opened this issue May 13, 2022 · 0 comments
Open

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

Dkdaniz opened this issue May 13, 2022 · 0 comments

Comments

@Dkdaniz
Copy link

Dkdaniz commented May 13, 2022

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?

@Dkdaniz Dkdaniz changed the title [error][macOS][M1][Electron] [error][macOS][M1][Electron][hid] May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant