Skip to content

[Tooling] - genkit start won't attach to Firebase Emulator Suite #3804

@codercatdev

Description

@codercatdev

Describe the bug
Trying to run genkit start -- firebase emulators:start --inspect-functions doesn't attach to firebase emulators. This seemed related to #590 but there is no --attach command available in this version.

Emulators run and genkit ui runs, but it doesn't connect.

afa@Alexs-MacBook-Pro genkit-firebase % genkit start -- firebase emulators:start --inspect-functions
Telemetry API running on http://localhost:4033
Project root: /Users/afa/remove/genkit-firebase
Genkit Developer UI: http://localhost:4000
i  emulators: Starting emulators: functions, extensions
⚠  functions: You are running the Functions emulator in debug mode. This means that functions will execute in sequence rather than in parallel.
⚠  functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: apphosting, auth, firestore, database, hosting, pubsub, storage, dataconnect
i  functions: Watching "/Users/afa/remove/genkit-firebase/functions" for Cloud Functions...
⚠  functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.
⚠  functions: Please note that there will be breaking changes when you upgrade.
⚠  functions: Your requested "node" version "22" doesn't match your global version "25". Using node@25 from host.
Serving at port 8582

✔  functions: Loaded functions definitions from source: menuSuggestion.
✔  functions[us-central1-menuSuggestion]: http function initialized (http://127.0.0.1:5001/flipfeeds-app/us-central1/menuSuggestion).
✔  functions: Using debug port 9229 for functions codebase default
>  Debugger listening on ws://127.0.0.1:9229/46a52f66-94fc-472a-8abb-20dbcc03f458
>  For help, see: https://nodejs.org/en/docs/inspector

┌─────────────────────────────────────────────────────────────┐
│ ✔  All emulators ready! It is now safe to connect your app. │
│ i  View Emulator UI at http://127.0.0.1:4001/               │
└─────────────────────────────────────────────────────────────┘

┌────────────┬────────────────┬──────────────────────────────────┐
│ Emulator   │ Host:Port      │ View in Emulator UI              │
├────────────┼────────────────┼──────────────────────────────────┤
│ Functions  │ 127.0.0.1:5001 │ http://127.0.0.1:4001/functions  │
├────────────┼────────────────┼──────────────────────────────────┤
│ Extensions │ 127.0.0.1:5001 │ http://127.0.0.1:4001/extensions │
└────────────┴────────────────┴──────────────────────────────────┘
  Emulator Hub host: 127.0.0.1 port: 4400
  Other reserved ports: 4500
┌─────────────────────────┬───────────────┬─────────────────────┐
│ Extension Instance Name │ Extension Ref │ View in Emulator UI │
└─────────────────────────┴───────────────┴─────────────────────┘
Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/codercatdev/genkit-firebase
  2. pnpm install
  3. cd functions && pnpm build
  4. in the root run genkit start -- firebase emulators:start --inspect-functions

Expected behavior
I expect genkit to attach

Screenshots

Image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • Version 142.0.7444.135

Mobile (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtooling

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions