Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running CushyStudio right after install (macOS M1) #101

Open
nini1294 opened this issue Dec 8, 2023 · 1 comment
Open

Issue running CushyStudio right after install (macOS M1) #101

nini1294 opened this issue Dec 8, 2023 · 1 comment

Comments

@nini1294
Copy link

nini1294 commented Dec 8, 2023

Describe the bug

OS: macOS (M1)

Getting a blank screen and error below in the console right after installing and starting.

Error is below

better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Full Stack Trace

Uncaught Error: dlopen(**CushyStudio/node_modules/.pnpm/better-sqlite3@9.2.2/node_modules/better-sqlite3/build/Release/better_sqlite3.node, 0x0001): tried: '**CushyStudio/node_modules/.pnpm/better-sqlite3@9.2.2/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '**/CushyStudio/node_modules/.pnpm/better-sqlite3@9.2.2/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (no such file), '**/CushyStudio/node_modules/.pnpm/better-sqlite3@9.2.2/node_modules/better-sqlite3/build/Release/better_sqlite3.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:2131)
    at Object.<anonymous> (node:internal/modules/cjs/loader:1356:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2131)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function.<anonymous> (node:electron/js2c/asar_bundle:2:13327)
    at Function._load (node:electron/js2c/renderer_init:2:4757)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at new Database (database.js:52:11)
@nini1294
Copy link
Author

nini1294 commented Dec 8, 2023

Ok I think I found the issue

This line in
./node_modules/.bin/electron-builder install-app-deps

Needed to be replaced with
./node_modules/.bin/electron-builder install-app-deps --arch arm64

Which gets the right version of better-sqlite3

Please close this issue if nothing else is needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant