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

mac: does not run on M1 processor #67

Open
ursmeili opened this issue Jun 7, 2022 · 0 comments
Open

mac: does not run on M1 processor #67

ursmeili opened this issue Jun 7, 2022 · 0 comments

Comments

@ursmeili
Copy link

ursmeili commented Jun 7, 2022

I use this component within an electron app. When I run the application on a Mac with the M1 processor, I get this exception on startup:

App threw an error during load
Error: dlopen(/Users/ume/git/monorepo/web/electron/app-helium/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node, 0x0001): tried: '/Users/ume/git/monorepo/web/electron/app-helium/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/ume/git/monorepo/web/electron/app-helium/node_modules/keyboard-layout/lib/keyboard-layout.js:4:35)
at Module._compile (node:internal/modules/cjs/loader:1116:14)

When I run the same app compiled as x86-64, I don't get any exception.

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