Running firebase emulators:start --debug causes a fatal error in the Emulator UI, exiting with code 1. This error appears to be related to the module type for server.mjs, which requires ESM support but is being handled by CommonJS’s require().
To Reproduce
Run firebase init and select only auth to emulate.
Describe the bug
Running
firebase emulators:start --debug
causes a fatal error in the Emulator UI, exiting with code1
. This error appears to be related to the module type forserver.mjs
, which requires ESM support but is being handled by CommonJS’srequire()
.To Reproduce
firebase init
and select only auth to emulate.firebase emulators:start
.My firebase.json
Expected behavior
The emulators should start successfully, with the Emulator UI accessible and logging as expected.
Screenshots
No screenshots were provided.
Desktop (please complete the following information):
Additional context
import()
in place ofrequire()
for/server/server.mjs
, aligning with Node's ESM requirements.