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 on mac #1545

Open
anurag2361 opened this issue Nov 2, 2024 · 2 comments
Open

Issue on mac #1545

anurag2361 opened this issue Nov 2, 2024 · 2 comments

Comments

@anurag2361
Copy link

Everytime i want to create an app on my mac machine, it starts the server, opens the frontend and then the server just throws and error and shuts down. This is the error it throws:

✔ Building Encore application graph... Done!
 ✔ Analyzing service topology... Done!
 ✔ Starting Encore application... Done!

 Encore development server running!

 Your API is running at:     http://127.0.0.1:4000
 Development Dashboard URL:  http://127.0.0.1:9400/mqrmc

Error: dlopen(/opt/homebrew/Cellar/encore/1.43.8/libexec/runtimes/js/encore-runtime.node, 0x0001): tried: '/opt/homebrew/Cellar/encore/1.43.8/libexec/runtimes/js/encore-runtime.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/encore/1.43.8/libexec/runtimes/js/encore-runtime.node' (no such file), '/opt/homebrew/Cellar/encore/1.43.8/libexec/runtimes/js/encore-runtime.node' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
   at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
   at Module.load (internal/modules/cjs/loader.js:950:32)
   at Function.Module._load (internal/modules/cjs/loader.js:790:12)
   at Module.require (internal/modules/cjs/loader.js:974:19)
   at require (internal/modules/cjs/helpers.js:101:18)
   at Object.<anonymous> (/Users/mymachine/example-encore/node_modules/encore.dev/dist/internal/runtime/napi/napi.cjs:11:22)
   at Module._compile (internal/modules/cjs/loader.js:1085:14)
   at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
   at Module.load (internal/modules/cjs/loader.js:950:32)
   at Function.Module._load (internal/modules/cjs/loader.js:790:12) {
 code: 'ERR_DLOPEN_FAILED'
}

I have tried all templates, even the empty one. This happens on all of them. What is the issue here?

@jainkuniya
Copy link

I am also getting the same issue

@ekerfelt
Copy link
Contributor

Are you running MacOS on arm64 or x86_64?

(you'll find it by running e.g. uname -a in a terminal)

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

4 participants
@jainkuniya @ekerfelt @anurag2361 and others