Skip to content

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

Open

Description

@alexander-densley

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:

Activity

  1. alexander-densley commented on Nov 29, 2024

    @alexander-densley
    ContributorAuthor

    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: [] }

  2. alexander-densley commented on Nov 29, 2024

    @alexander-densley
    ContributorAuthor

    im also using pnpm

  3. abdulrehmandev commented on Nov 30, 2024

    @abdulrehmandev

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions