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

Running on a m2 mac getting: Error: Could not load the "sharp" module using the darwin-arm64 runtime #110

Open
alexander-densley opened this issue Nov 26, 2024 · 3 comments

Comments

@alexander-densley
Copy link
Contributor

basically the title. i started a new nextjs project, and then installed zerox and got this issue. any thoughts? this is the rest of the error:

Error: Could not load the "sharp" module using the darwin-arm64 runtime
Possible solutions:

@alexander-densley
Copy link
Contributor Author

for more context if i move the code to a route handler it give this error:
⨯ uncaughtException: Error: Cannot find module '/Users/densley/startup/redline/.next/worker-script/node/index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15) at Module._load (node:internal/modules/cjs/loader:985:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:186:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:822:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'MODULE_NOT_FOUND', requireStack: [] } ⨯ uncaughtException: Error: Cannot find module '/Users/densley/startup/redline/.next/worker-script/node/index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15) at Module._load (node:internal/modules/cjs/loader:985:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at MessagePort.<anonymous> (node:internal/main/worker_thread:186:26) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:822:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { code: 'MODULE_NOT_FOUND', requireStack: [] }

@alexander-densley
Copy link
Contributor Author

im also using pnpm

@abdulrehmandev
Copy link

I am also facing this worker-script issue, which I mentioned in #99

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

2 participants