Skip to content
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

Firebase emulators won't start #6597

Closed
starleaf1 opened this issue Dec 8, 2023 · 3 comments · Fixed by #6599
Closed

Firebase emulators won't start #6597

starleaf1 opened this issue Dec 8, 2023 · 3 comments · Fixed by #6599

Comments

@starleaf1
Copy link

[REQUIRED] Environment info

firebase-tools:
13.0.1

Platform:
Ubuntu

[REQUIRED] Test case

Start a Firebase emulator by running firebase emulators:start

[REQUIRED] Steps to reproduce

Same as above

[REQUIRED] Expected behavior

Firebase emulator starts without any error.

[REQUIRED] Actual behavior

Firebase emulator starts, displaying false warning about an emulator instance already running, and then crashed showing the message: An unexpected error has occured.

firebase-debug.log

@aalej
Copy link
Contributor

aalej commented Dec 8, 2023

Hey @starleaf1, thanks for reaching out and sharing your debug logs. I’m trying to reproduce the issue you mentioned, but I encountered no errors when starting the emulators on an existing project.

Looking through your logs, it seems like the reason why the emulators wasn’t able to start was due to this error:

[debug] [2023-12-08T15:10:32.589Z] TypeError: (0 , strip_ansi_1.default) is not a function
   at Socket.<anonymous> (/home/starleaf1/.nvm/versions/node/v18.17.0/lib/node_modules/firebase-tools/lib/frameworks/vite/index.js:93:67)
   at Socket.emit (node:events:514:28)
   at Socket.emit (node:domain:489:12)
   at addChunk (node:internal/streams/readable:324:12)
   at readableAddChunk (node:internal/streams/readable:297:9)
   at Readable.push (node:internal/streams/readable:234:10)
   at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
[error]
[error] Error: An unexpected error has occurred.

Could provide detailed steps to reproduce the issue or an MCVE where the issue is reproducible so that we can replicate it on our end?

I’m using the following to try and reproduce the issue:

  • firebase-tools: v13.0.1
  • Node: v20.10.0

@aalej aalej added the Needs: Author Feedback Issues awaiting author feedback label Dec 8, 2023
@jamesdaniels
Copy link
Member

It seems to me that this is likely for our fix in Windows environments #6588 I'm unable to reproduce however, so something definitely seems off

@jamesdaniels
Copy link
Member

Ok after a rm -rf node_modules and a fresh install I'm able to repro, a fix will be out in the next release. In the meantime 13.0.0 will work (unless you're on Windows).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants