> poku@3.0.2 test
> tsx src/bin/index.ts test/unit test/integration test/e2e
node:internal/assert:17
throw new ERR_INTERNAL_ASSERTION(message);
^
Error [ERR_INTERNAL_ASSERTION]: Unexpected module status 3.
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
at assert.fail (node:internal/assert:17:9)
at ModuleJob.runSync (node:internal/modules/esm/module_job:314:12)
at require (node:internal/modules/esm/translators:150:9)
at <anonymous> (**/poku/src/services/reporters/poku.ts:6:24)
at Object.<anonymous> (***/poku/src/services/reporters/poku.ts:244:4)
at loadCJSModule (node:internal/modules/esm/translators:165:3)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:207:7)
at ModuleJob.runSync (node:internal/modules/esm/module_job:306:39)
at require (node:internal/modules/esm/translators:150:9)
at <anonymous> (***/poku/src/builders/reporter.ts:2:22) {
code: 'ERR_INTERNAL_ASSERTION'
}
Node.js v24.1.0
After updating tsx from
v4.19.4tov4.20.0using Node.jsv24.1.0, Poku crashes when usingassertmethod:Temporary workarounds
v22.x.x.v4.19.4.EDIT: Fixed (reverted) in tsx
v4.20.3🚀Important
As the error didn't occur without updating tsx (even using Node.js 24), every help trying to provide a minimum viable reproduction using only
node:assertand tsx is welcome.Note
The same error seems to be reported in Node.js (ERR_INTERNAL_ASSERTION: Unexpected module status 3 nodejs/node#58515) and there is a possible solution in progress in module: allow cycles in require() in the CJS handling in ESM loader nodejs/node#58598.
tsx "breaking change": privatenumber/tsx@ec316d3 (github.com/privatenumber/tsx/releases/tag/v4.20.0).