Open wwmike opened 5 months ago
node:internal/modules/cjs/loader:986
throw new ERR_REQUIRE_ESM(filename, true);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/ryan/.cache/firebase/emulators/ui-v1.11.8/server/server.mjs not supported.
Instead change the require of /home/ryan/.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
The same issue with a fresh install of Ubuntu 22.04.4 LTS. Tested Node 16, 18 and 20 LTS. @christhompsongoogle Is Firebase Emulator not compatible with Ubuntu 22.04?
I made some changes to the UI recently which changed the output from js to mjs - try installing a version prior to 13.5.1 and see if that fixes the issue
https://github.com/firebase/firebase-tools/releases/tag/v13.5.1
try installing a version prior to 13.5.1 and see if that fixes the issue
https://github.com/firebase/firebase-tools/releases/tag/v13.5.0 fixes the issue.
I have 13.6.0 and facing the same issue, should I downgrade?
Try downgrading and report the results, I can't reproduce on my linux version but more information is helpful
On Wed, Mar 27, 2024 at 2:09 PM Moses Gameli @.***> wrote:
I have 13.6.0 and facing the same issue, should I downgrade?
— Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-tools-ui/issues/1014#issuecomment-2023995002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKGOHSY3YILS6HWXBXOBJLY2MYRZAVCNFSM6AAAAABCWHS7PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTHE4TKMBQGI . You are receiving this because you were mentioned.Message ID: <firebase/firebase-tools-ui/issues/1014/2023995002 <(202)%20399-5002>@ github.com>
Same here, downgrading to 13.5.0 solved the issue.
Downgrading from 13.8.0 to 13.5.0 resolved the issue for me as well.
Describe the bug When I start the emulators with emulators start command, all, but ui starts. This is the error log:
I don't know where node v18.5.0 comes from, I haven't found this version on my PC, my node version is 21.1.0, which is available in $PATH. Also, once I could see v20 after
nvm use v20...
and deleting firebase cache, but the next run it was v18.5.0 again.To Reproduce Steps to reproduce the behavior:
firebase emulators:start
Expected behavior It should be running.
Desktop:
Additional context Add any other context about the problem here.