firebase / firebase-tools-ui

A local-first UI for Firebase Emulator Suite.
https://firebase.googleblog.com/2020/05/local-firebase-emulator-ui.html
Apache License 2.0
270 stars 62 forks source link

firebase emulators:start Fails with ESM Import Error in Emulator UI on MacOS #1059

Open scottnimos opened 1 week ago

scottnimos commented 1 week ago

Describe the bug

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

  1. Run firebase init and select only auth to emulate.
  2. Enable the Emulator UI during setup.
  3. Execute firebase emulators:start.

My firebase.json

{
  "emulators": {
    "auth": {
      "port": 9099
    },
    "ui": {
      "enabled": true
    },
    "singleProjectMode": true
  }
}

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