ERR_REQUIRE_ESM
Author: f4eruCreated Aug 21, 2026Updated Sep 1, 2026
Hello,
starting ungit 1.5.30+4d147daa via command line gives an error:
$ ungit
node:internal/modules/cjs/loader:1194
throw new ERR_REQUIRE_ESM(filename, true);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/ungit/node_modules/yargs/index.mjs not supported.
Instead change the require of /usr/local/lib/node_modules/ungit/node_modules/yargs/index.mjs to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/usr/local/lib/node_modules/ungit/source/config.js:7:15)
at Object.<anonymous> (/usr/local/lib/node_modules/ungit/bin/ungit:5:16) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.19.1
$Source: FredrikNoren/ungit