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
262 stars 60 forks source link

Firebase emulator unexpected error on start #958

Closed killoblanco closed 1 year ago

killoblanco commented 1 year ago

Note: Before filing bugs in this repo, please ensure that this is a bug for the Emulator Suite UI. Emulator Suite and/or Firebase CLI bugs should be filed under the firebase-tools repo here: https://github.com/firebase/firebase-tools/issues/new/choose

Describe the bug After running firebase emulators:start --import=./firebase-export --export-on-exit I'm getting emulators stoped with unexpected error.

To Reproduce Steps to reproduce the behavior:

  1. npm i -g firebase-tools
  2. firebase emulators:start --import=./firebase-export --export-on-exit

Expected behavior Emulators to run properly

Screenshots C:....cache\firebase\emulators\ui-v1.11.2\server\server.js:569 re"use strict"; ^^^^^^^^^^^^

SyntaxError: Unexpected string at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1176:20) at Module._compile (node:internal/modules/cjs/loader:1218:27) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47

Node.js v18.16.0

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

killoblanco commented 1 year ago

Not sure what was, but after delete firebase project, emulator binaries and runing again firebase init it runs as espected

christhompsongoogle commented 1 year ago

Glad to hear this is working for you now, I'll close this one as not reproducible but if you encounter it again let me know.