node_runtime
An uncaught Node error. The message above the stack is the cause; an ESM/CJS resolution error means a missing or mis-declared module.
jsruntimetoolmatcher
Install: ci-doctor matchers add official/node_runtime
matchers/js/node_runtime/matcher.yaml
id: node_runtimerole: toolclassification: [js, runtime]description: An uncaught Node error. The message above the stack is the cause; an ESM/CJS resolution error means a missing or mis-declared module.pattern: ^\s*at .+\(node:internal|^Node\.js v\d+\.|ERR_MODULE_NOT_FOUND|ERR_REQUIRE_ESM|UnhandledPromiseRejectionbefore: 12after: 6
In bundles
Fixtures
Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.
node_uncaught_errorOpen in playground
1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: node_uncaught_error
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run npm ci --no-audit --no-fund
35npm ci --no-audit --no-fund
36npm run build --silent
37node dist/server.js --smoke-test
38shell: /usr/bin/bash -e {0}
39##[endgroup]
40added 842 packages in 12s
41/builds/team/api/dist/db/pool.js:42
42 throw new Error(`missing DATABASE_URL in ${process.env.NODE_ENV}`);
43 ^
44
45Error: missing DATABASE_URL in production
46 at createPool (/builds/team/api/dist/db/pool.js:42:11)
47 at Object.<anonymous> (/builds/team/api/dist/server.js:12:18)
48 at Module._compile (node:internal/modules/cjs/loader:1356:14)
49 at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
50 at Module.load (node:internal/modules/cjs/loader:1197:32)
51 at Module._load (node:internal/modules/cjs/loader:1013:12)
52 at node:internal/main/run_main_module:28:49
53
54Node.js v20.11.1
55##[error]Process completed with exit code 1.
56##[group]Post Run actions/checkout@v4
57##[endgroup]
58/usr/bin/git version
59git version 2.54.0
60##[group]Post Run actions/upload-artifact@v4
61##[endgroup]
62Artifact upload complete.
63##[warning]smoke.log: no matching files. Ensure that the artifact path is relative to the working directory
64Post job cleanup.
65Cleaning up orphan processes
1Running with gitlab-runner 16.10.0 (be4e0e33)
2 on green-4.saas-linux-medium-amd64 Kd8f2Lp1, system ID: s_9f8e7d6c5b4a
3Preparing the "docker+machine" executor
4 Using Docker executor with image node:20-alpine ...
5Using Docker executor with image node:20-alpine ...
6Using docker image sha256:1122334455aa for node:20-alpine with digest node@sha256:ffee...
7Preparing environment
8Running on runner-kd8f2lp1-project-88-concurrent-4...
9Fetching changes...
10Checking out ea77c130 as detached HEAD...
11Checking cache for node-modules-20-default...
12Successfully extracted cache
13$ npm ci --no-audit --no-fund
14added 842 packages in 12s
15$ npm run build --silent
16$ node dist/server.js --smoke-test
17/builds/team/api/dist/db/pool.js:42
18 throw new Error(`missing DATABASE_URL in ${process.env.NODE_ENV}`);
19 ^
20
21Error: missing DATABASE_URL in production
22 at createPool (/builds/team/api/dist/db/pool.js:42:11)
23 at Object.<anonymous> (/builds/team/api/dist/server.js:12:18)
24 at Module._compile (node:internal/modules/cjs/loader:1356:14)
25 at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
26 at Module.load (node:internal/modules/cjs/loader:1197:32)
27 at Module._load (node:internal/modules/cjs/loader:1013:12)
28 at node:internal/main/run_main_module:28:49
29
30Node.js v20.11.1
31Running after_script
32$ echo "smoke test failed"
33smoke test failed
34Uploading artifacts for failed job
35WARNING: smoke.log: no matching files. Ensure that the artifact path is relative to the working directory
36ERROR: Job failed: exit code 1