Skip to content

Functions Emulator error when using SEA preview build #10984

Description

@aalej

[REQUIRED] Environment info

firebase-tools: 15.26.0 (SEA preview build)

Platform: macOS

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

  1. Run firebase init functions --project demo-project
✔ What language would you like to use to write Cloud Functions? JavaScript
✔ Do you want to use ESLint to catch probable bugs and enforce style? No
✔  Wrote functions/package.json
✔  Wrote functions/index.js
✔  Wrote functions/.gitignore
✔ Do you want to install dependencies with npm now? Yes
  1. Update functions/index.js
const { onRequest } = require("firebase-functions/https");
const logger = require("firebase-functions/logger");

exports.helloWorld = onRequest((request, response) => {
    logger.info("Hello logs!", { structuredData: true });
    response.send("Hello from Firebase!");
});
  1. Run firebase emulators:start --project demo-project
  2. Open http://127.0.0.1:5001/demo-project/us-central1/helloWorld on a browser
    • This gets stuck

[REQUIRED] Expected behavior

There shouldn't be any errors when invoking functions on the Functions Emulator

[REQUIRED] Actual behavior

Functions Emulator shows these errors

>  Error: /Users/USER/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/emulator/functionsEmulatorRuntime is not a Firebase command
⬢  functions: Failed to handle request for function us-central1-helloWorld
⬢  functions: Failed to start functions in /Users/USER/Desktop/firebase-tools/node-sea-test/func-emulator/functions: Failed to load function.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions