Skip to content

Can't intercept terminal with turborepo: Cannot find module '\path\..\js\prepend-node.js' #156

@ceifa

Description

@ceifa

When starting turborepo on a hooked terminal, I get this error:

node:internal/modules/cjs/loader:1404
  throw err;
  ^

Error: Cannot find module '\path\..\js\prepend-node.js'
Require stack:
- internal/preload
    at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
    at mod._load (C:\Users\ceifa\AppData\Local\Programs\httptoolkit\resources\httptoolkit-server\
overrides\js\wrap-require.js:52:26)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1487:12)
    at node:internal/modules/cjs/loader:2045:12
    at loadPreloadModules (node:internal/process/pre_execution:734:5)
    at setupUserModules (node:internal/process/pre_execution:206:5)
    at prepareExecution (node:internal/process/pre_execution:159:5)
    at prepareMainThreadExecution (node:internal/process/pre_execution:54:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

Node.js v22.15.0
 ELIFECYCLE  Command failed with exit code 1.

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