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

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

@Dkdaniz

Description

@Dkdaniz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions