-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emulator UI is broken on FirePit #6931
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Hey @rvahlin, thanks for reaching out. Sorry to hear you encountered this issue. I’m trying to reproduce this locally, but so far I haven’t encountered any issue with starting the emulators. I’d like to recommend switching to an even version of Node.js(20.x.x) since those versions have long term support. After that, could you try deleting the contents of Also, could you run I used the following to try and reproduce this:
|
i've experienced te same issue on: Switching my node version (back) to v18.19.0 i was able to start the emulator again. |
I've experienced the same issue (on a project where setup was already done) Installing |
It worked for me, the problem seems to stem from the CLI installation. |
Hey folks, thanks for the additional information. I tried to reproduce this issue again, and as mentioned in #6931 (comment), it seems like this issue occurs when |
I faced this same issue and, since I only needed the firebase emulators to be initialized, a partial solution I found was to remove the UI option in |
Hey all, thanks for reporting this - a quick explanation of what's going on. When installed via firebase.tools, the CLI comes bundled with node (so that you can run it without node installed on your machine beforehand). It looks like a recent release of the emulator UI added a require() of a ES module, which is incompatible with the bundled Node config. Apologies for the inconvenience here - I'll take a crack a fixing this today. In the interim, installing firebase-tools through |
Duplicates firebase/firebase-tools-ui#1014 |
Make sure you remove firebase tools first through |
This is just a suggestion for mac users. You can install firebase-cli using brew. That fixed this issue for me.
|
Same here. |
Thanks this was the issue |
This fixed the problem for me. Thanks! |
Please, can you fix this? It's definitely a bug. The bundle should work. |
Can confirm the error only happens on curl installed firebase tools |
Even though it works right now after following these exact steps @Stf-F listed, after initialising the project again with (node:96126) [DEP0040] DeprecationWarning: The |
Hey @s-scheck - the warning you're seeing there is coming from a deprecation done in Node 22, and is nothing to worry about for now. We haven't started targeting Node 22 yet (mostly because we're busy trying to move all our dependencies to get rid of deprecation warnings like that!), but will in the next major version we release. |
I was also hit by this issue using it in Docker. I confirm using |
Great! Looking forward to v14. |
Node v18.5.0 still getting the ERR_REQUIRE_ESM error upon trying to run |
I have faced the same issue when using firebase codelabs.
|
Removing firebase tools and doing this: sudo rm -rf /usr/local/bin/firebase and re-installing with brew install firebase-cli Ended up working for me however I'm not sure if this is going to jive with running multiple versions of node on the same machine. I guess we'll see. |
This is still happening for me when installing with firebase tools using
This is also what worked for me |
Still broke. after
But still have this deprecation warning too to this date.
|
After I delete
Everything works without any warning or bugs, even got rid of the DeprecationWarning |
We still have this problem with automatic install script. What's the version of firebase-tools that does not have this exact problem? |
13.16.0 |
I've been using 13.5.0 for 2 months now. Not sure if any future updates has fixed this issue. Just run |
sudo rm -rf /usr/local/bin/firebase worked for me as suggested by @yuanzd123 on 13.17.0 tools. |
This is not an completely acceptable solution. The error happens on the Standalone Windows binary with the following error:
Users should not have to use npm to avoid an issue when a standalone binary is provided. Instead, the binary should be updated to a newer version of npm that can avoid this error. |
firebase-tools:
13.5.2
Platform:
macOS
Sonoma 14.3.1
[REQUIRED] Test case
I followed the instructions in the Install, configure and integrate Local Emulator Suite guide. When I start up the emulators by running firebase emulators:start, all emulators except for Emulator Suite UI will start but the UI emulators throws an error:
Fatal error occurred: Emulator UI has exited with code: 1, stopping all running emulators
When I review my ui-debug.log, I can see the below message:
`node:internal/modules/cjs/loader:986
throw new ERR_REQUIRE_ESM(filename, true);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/XXXXX/.cache/firebase/emulators/ui-v1.11.8/server/server.mjs not supported.
Instead change the require of /Users/XXXXX/.cache/firebase/emulators/ui-v1.11.8/server/server.mjs to a dynamic import() which is available in all CommonJS modules.
at Function.runMain (pkg/prelude/bootstrap.js:1979:12) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.5.0`
Don't know why the log states "Node.js v18.5.0", as I'm running v21.7.1 and I don't know if this is relevant or not.
[REQUIRED] Steps to reproduce
Follow the steps in the Install, configure and integrate Local Emulator Suite guide.
[REQUIRED] Expected behavior
Should be able to start the UI Emulator
[REQUIRED] Actual behavior
Unable to start the UI Emulator. Logs are included in the "Test case" section above.
The text was updated successfully, but these errors were encountered: