Skip to content

Data Connect: Admin Sdk Not Generated #10695

Description

@mschwerz-bitrip

[REQUIRED] Environment info

firebase-tools: 15.22.0 (broken). Last known-good: 15.21.0

Platform: macOS 26.5.1

[REQUIRED] Test case

A Data Connect project with three separate connectors, each configured to
generate a different SDK type. The web and mobile connectors generate correctly,
but the admin (adminNodeSdk) connector is the one being skipped.

dataconnect/dataconnect.yaml

specVersion: "v1"
serviceId: "myapp-dev-api-service"
location: "us-east4"
schema:
  source: "./schema"
  datasource:
      postgresql:
        database: "myapp-dev-api-database"
        cloudSql:
          instanceId: "myapp-dev-api-instance"
connectorDirs: ["./admin", "./mobile", "./web"]

dataconnect/admin/connector.yaml

connectorId: "myapp-backend"
generate:
  adminNodeSdk:
    outputDir: ../../functions/dataconnect-generated
    package: "@dataconnect/admin-generated"
    packageJsonDir: ../../functions

dataconnect/mobile/connector.yaml

connectorId: "myapp-mobile"
generate:
  kotlinSdk:
    - outputDir: ../../dataconnect-generated/kotlin-generated
      package: com.example.dataconnect
      clientCache: {}
  swiftSdk:
    - outputDir: ../../dataconnect-generated/swift-generated
      package: DataconnectGenerated
      clientCache: {}

dataconnect/web/connector.yaml

connectorId: "myapp-web"
generate:
  javascriptSdk:
    outputDir: "../../dataconnect-generated/web-generated"
    package: "@myapp/dataconnect-web"

[REQUIRED] Steps to reproduce

  1. On firebase-tools 15.21.0, run SDK generation (e.g.
    firebase dataconnect:sdk:generate or via firebase deploy --only dataconnect)
    — the adminNodeSdk, kotlin/swift, and javascript connectors all generate
    as expected.
  2. Upgrade to firebase-tools 15.22.0 (npm i -g firebase-tools@15.22.0).
  3. Re-run the same generation command against the same, unchanged config.

[REQUIRED] Expected behavior

All three connectors listed in connectorDirs generate their SDKs, including the
adminNodeSdk connector in ./admin

[REQUIRED] Actual behavior

The javascriptSdk (web) and kotlinSdk/swiftSdk (mobile) connectors generate
fine, but the adminNodeSdk connector in ./admin is silently skipped — no output
is produced in functions/dataconnect-generated and no error or warning is printed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions