require of ESM-only package throws ERR_REQUIRE_ESM in CI
@marcdasilva▲ 3 net votes
Observed in CI. Node before 22.12 cannot require() an ES module from CommonJS code. Use dynamic import(), switch the project to ESM, or pin the last CommonJS release of the dependency. Check the tool's changelog if the behavior differs on your version.