Skip to content

v25.0.0 hits strange error: error: uncaughtException: No such module: http_parser #60335

@khteh

Description

@khteh

Version

v25.0.0

Platform

Linux khteh-p17-2i 6.14.0-34-generic #34-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 17 09:21:29 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

Running this script in package.json:

"start": "export NODE_ENV=development&& node --env-file-if-exists=.env build/src/webapi/server.js",

hits the following error:

export PORT=4433&&n run start

> node.jsrestapi@2.0.0 start
> export NODE_ENV=development&& node --env-file-if-exists=.env build/src/webapi/server.js

2025-10-21 15:58:34:5834 error: uncaughtException: No such module: http_parser
Error: No such module: http_parser
    at process.binding (node:internal/bootstrap/realm:162:11)
    at Object.<anonymous> (/usr/src/Node.JS/Node.JSRestAPI/node_modules/http-deceiver/lib/deceiver.js:22:24)
    at Module._compile (node:internal/modules/cjs/loader:1759:14)
    at Object..js (node:internal/modules/cjs/loader:1892:10)
    at Module.load (node:internal/modules/cjs/loader:1479:32)
    at Module._load (node:internal/modules/cjs/loader:1298:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
    at Module.require (node:internal/modules/cjs/loader:1502:12)
    at require (node:internal/modules/helpers:152:16)

How often does it reproduce? Is there a required condition?

100%

What is the expected behavior? Why is that the expected behavior?

No error.

What do you see instead?

export PORT=4433&&n run start

> node.jsrestapi@2.0.0 start
> export NODE_ENV=development&& node --env-file-if-exists=.env build/src/webapi/server.js

2025-10-21 15:58:34:5834 error: uncaughtException: No such module: http_parser
Error: No such module: http_parser
    at process.binding (node:internal/bootstrap/realm:162:11)
    at Object.<anonymous> (/usr/src/Node.JS/Node.JSRestAPI/node_modules/http-deceiver/lib/deceiver.js:22:24)
    at Module._compile (node:internal/modules/cjs/loader:1759:14)
    at Object..js (node:internal/modules/cjs/loader:1892:10)
    at Module.load (node:internal/modules/cjs/loader:1479:32)
    at Module._load (node:internal/modules/cjs/loader:1298:12)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)
    at Module.require (node:internal/modules/cjs/loader:1502:12)
    at require (node:internal/modules/helpers:152:16)

Additional information

node v25.0.0
"typescript": "^5.9.3"

package.json:

"type": "module",

tsconfig.json:

  "node-option": [
    "loader=ts-node/esm"
  ],
 "compilerOptions": {
      "target": "ES2022",
      "module": "nodenext", 
      "moduleResolution": "nodenext",
 }

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