Skip to content

[firebase] firebase emulators:start is not working  #628

Closed as not planned
Closed as not planned

Description

@aaronjsutton

Environment

Nitro 0.6.0
Node 16.16.0
Nuxt 3 RC 11
Firebase Tools 11.0.0 +

Reproduction

Minimal reproduction here.

npm i
npm run build
firebase emulators:start --debug

Describe the bug

Firebase tools fails to start emulators or deploy functions. Looking closer, the externals plugin fails to trace some of the files found in firebase-functions node module. Although Firebase does not upload local node modules during deployment, it appears as though it needs some binaries present in node_modules to start the process. Without this, deployment fails.

Copying the complete node_modules/firebase-functions to .output/server/node_modules solves the issue, and I intend on adding this to the Firebase preset and submitting a PR.

Related

Additional context

No response

Logs

[2022-10-31T22:57:55.055Z] Building nodejs source
[2022-10-31T22:57:55.055Z] Analyzing nodejs backend spec
[2022-10-31T22:57:55.058Z] Could not find functions.yaml. Must use http discovery
[2022-10-31T22:57:55.076Z] Error: spawn ./node_modules/.bin/firebase-functions ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Activity

  1. added
    bug
    on Jun 30, 2023
  2. changed the title [-]Externals plugin breaks Firebase deployment[/-] [+][firebase] firebase emulators:start is not working [/+] on Jul 1, 2023
  3. pi0 commented on May 16, 2024

    @pi0
    Member

    I think it should be sovled last time i checked. if still have issues feel free to reopen 🙏🏼

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuepreset:firebase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions