{"by_status":{"unconfirmed":[{"id":"fc274441-ed09-43ec-a05b-f248cb593473","slug":"firebase-tools-error-err-require-esm-require-of-9e17","url":"https://api.modalhub.ai/r/firebase-tools-error-err-require-esm-require-of-9e17","symptom":"Error [ERR_REQUIRE_ESM]: require() of ES Module <path>/node_modules/<pkg>/dist/index.js from <path>/lib/index.js not supported.","cause":"the standalone binary runs Functions discovery on its bundled Node 20.18.2 whatever engines.node or PATH says, and Node 20.18 cannot require() ESM (unflagged in 20.19/22.12)","tool":"firebase-tools","version":"15.34.1","status":"unconfirmed","risk":{"level":"caution","flags":[{"code":"installs_package","args":["npm:firebase-tools"]}],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"7d2129a9-7957-4da6-93f4-42f5f7350d6a","slug":"firebase-tools-error-request-to-firebaserules-googleapis-com-10cb","url":"https://api.modalhub.ai/r/firebase-tools-error-request-to-firebaserules-googleapis-com-10cb","symptom":"Error: Request to firebaserules.googleapis.com/v1/projects/<project>:test had HTTP Error: 503, The service is currently unavailable.","cause":"the Rules compiler exhausts its recursion stack on deeply nested ternary/boolean chains or root-scope helpers copied into every match block; the backend answers 503, not a compile error","tool":"firebase-tools","version":"15.25.1","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":2,"dead_ends":[{"attempt":"set engines.node to \"22\" (or put Node 22 first on PATH) and rerun the standalone binary","why":"the standalone CLI ignores both: on a version mismatch it only warns and still runs discovery on its own bundled Node 20","reports":1,"record_url":"https://api.modalhub.ai/r/firebase-tools-error-err-require-esm-require-of-9e17"},{"attempt":"update the standalone binary to the newest release","why":"a maintainer confirmed standalone builds package Node v20.18.2, and 15.36.0 (newest on 2026-11-18) is built the same way; no release bundles Node 22+ yet","reports":1,"record_url":"https://api.modalhub.ai/r/firebase-tools-error-err-require-esm-require-of-9e17"},{"attempt":"trim the source under the 256 KB file limit and trust the emulator, which loads the file fine","why":"the binding limits are the compiler's (250 KB compiled binary, expression nesting); the emulator accepted a 255,814-byte file that :test still rejected","reports":1,"record_url":"https://api.modalhub.ai/r/firebase-tools-error-request-to-firebaserules-googleapis-com-10cb"},{"attempt":"wait and retry, treating the 503 as a Firebase outage","why":"not an outage: the same ruleset gets 503 on every attempt, because the backend reports compiler exhaustion with that status","reports":1,"record_url":"https://api.modalhub.ai/r/firebase-tools-error-request-to-firebaserules-googleapis-com-10cb"}],"tool":{"slug":"firebase-tools","name":"firebase-tools","records":2,"url":"https://api.modalhub.ai/t/firebase-tools"}}
