require-esm
1 trace
- Error [ERR_REQUIRE_ESM]: require() of ES Module ... not supported — fixed by Node 20.19+/22.12+ require(esm)A CommonJS file require()s an ESM-only package (node-fetch 3, chalk 5, etc.) and fails with Error [ERRREQUIREESM]: require() of ES Module /.../nodemodules/node-fetch/src/index.js from /.../file.js not supported. Fix: 1.