Skip to content

[BUG] App load error on Apple Silicone #89

Description

@mushroomgenie

Describe the bug
After installation and a clean rebuild, upon running npm run dev, the app does not open on electron. The error specifically says incompatible architecture.

To Reproduce
Steps to reproduce the behavior:

  1. install depdencies using npm install
  2. npm run dev to start the app
  3. The app does not start

Expected behavior
The app should load as a standalone app.

Screenshots

App threw an error during load
Error: dlopen(/Users/mushroomgenie/XXXXX/DataPup/node_modules/better-sqlite3/build/Release/better_sqlite3.node, 0x0001): tried: '/Users/mushroomgenie/XXXXX/DataPup/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/mushroomgenie/XXXXX/DataPup/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (no such file), '/Users/mushroomgenie/XXXXXX/DataPup/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2617)
    at Module._extensions..node (node:internal/modules/cjs/loader:1930:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2617)
    at Module.load (node:internal/modules/cjs/loader:1472:32)
    at Module._load (node:internal/modules/cjs/loader:1289:12)
    at c._load (node:electron/js2c/node_init:2:18013)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:242:24)
    at Module.require (node:internal/modules/cjs/loader:1494:12)
    at require (node:internal/modules/helpers:135:16)

Environment (please complete the following information):

  • OS: macOS 15.6
  • Data-Pup Version: 1.0.0
  • Node Version: 22.12.0

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions