Skip to content

Running arm64 REH build exits with MODULE_NOT_FOUND error #5775

Closed
@timtmok

Description

System details:

Positron and OS details:

main on Linux arm64 and Mac

Interpreter details:

n/a

Describe the issue:

I haven't been able to try this on Linux x86_64 but a local REH build fails to run from what looks like import problems from the 1.95.0 merge.

../vscode-reh-web-darwin-arm64/bin/positron-server --version
node:internal/modules/cjs/loader:1225
  const err = new Error(message);
              ^

Error: Cannot find module '../package.json'
Require stack:
- /Users/tmok/source/vscode-reh-web-darwin-arm64/out/server-main.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at file:///Users/tmok/source/vscode-reh-web-darwin-arm64/out/server-main.js:59132:12
    at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/tmok/source/vscode-reh-web-darwin-arm64/out/server-main.js'
  ]
}

Node.js v20.18.0
(base) 

Steps to reproduce the issue:

  1. Build REH. (I used npm run gulp vscode-reh-web-darwin-arm64 and npm run vscode-reh-web-linux-arm64)
  2. Run positron-server

Expected or desired behavior:

No errors about finding modules

Were there any error messages in the UI, Output panel, or Developer Tools console?

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions