{"id":16,"hash":"96a9789ddef81db92dceaf48487edbbccc4dc83a66746ea21a158c5d1162b32f","pattern":"Error [ERR_REQUIRE_ESM]: require() of ES Module","full_message":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/file.js from /caller not supported.","ecosystem":"npm","package_name":null,"package_version":null,"solution":"You're require()-ing a package that ships ESM only.\n1. Convert the caller to ESM (`\"type\": \"module\"` in package.json + use `import`).\n2. If on Node 22.12+, require(ESM) now works automatically (no flag).\n3. Use dynamic import in CJS: `const mod = await import('esm-only-pkg')`.","confidence":0.9,"source":"internal","source_url":"https://nodejs.org/api/errors.html#err_require_esm","votes":31,"created_at":"2026-04-19T03:24:36.999250+00:00","updated_at":"2026-04-19T03:25:24.787597+00:00"}