You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dataconnect-emulator-3.3.1: sdk:generate fails with ImportsTS wrong number of args #10227
firebase-tools: 15.12.0 Platform: Linux (WSL2, also reproduces on GitHub Actions Ubuntu runners) dataconnect-emulator: 3.3.1 (bundled with firebase-tools 15.12.0)
Bug description
firebase dataconnect:sdk:generate fails with a Go template error in dataconnect-emulator-3.3.1. The ImportsTS template function now requires 2 arguments (the second being ClientCache), but the emulator only passes 1.
Steps to reproduce
Install firebase-tools@15.12.0
Have a connector.yaml with javascriptSdk configured (with or without clientCache: {})
Run firebase dataconnect:sdk:generate
Error output
I0331 17:06:10.835010 jsgen.go:146] Embedded file index.d.ts.go.tmpl
E0331 17:06:16.627776 generate_cmd.go:51] Failed to generate SDKs:
[connector "deliverables" javascriptSdk]: failed to generate sources:
failed to parse template: template: index.d.ts.go.tmpl:4:12: executing "index.d.ts.go.tmpl" at <ImportsTS>: wrong number of args for ImportsTS: want 2 got 1
Error: An unexpected error has occurred.
Investigation
Running the emulator with verbose logging (-v=5) confirms:
The emulator readsclientCache from connector.yaml correctly:
Hey @m47een thanks for reporting this! I'm currently working on reproducing this, but so far I haven't encountered any issues when running firebase dataconnect:sdk:generate. If you are using a web framework, could you let us know which one you're using(Next, Angular, etc.). This will help us accurately reproduce the error.
Our engineering team has an idea of what's causing this issue, and we want to make sure that we apply the correct fix.
We're using Angular 21 (zoneless, standalone components). The javascriptSdk entry has angular: true and react: false. We also generate an adminNodeSdk for Firebase Functions.
The error occurs with firebase-tools@15.12.0 on both WSL2 (Linux 6.6.87) and GitHub Actions Ubuntu runners. Pinning to firebase-tools@15.11.0 (which uses dataconnect-emulator-3.3.0) works fine.
Note: adding clientCache: {} to the javascriptSdk config doesn't help — the emulator reads it (confirmed via -v=5 logging) but still fails at the template level.
Thanks @m47een for the additional info! It looks like the issue occurs when generating code for Angular. I'll mark this issue as reproducible and share an mcve here.
Activity
aalej commentedon Mar 31, 2026
Hey @m47een thanks for reporting this! I'm currently working on reproducing this, but so far I haven't encountered any issues when running
firebase dataconnect:sdk:generate. If you are using a web framework, could you let us know which one you're using(Next, Angular, etc.). This will help us accurately reproduce the error.Our engineering team has an idea of what's causing this issue, and we want to make sure that we apply the correct fix.
m47een commentedon Apr 1, 2026
Hi @aalej, thanks for looking into this!
We're using Angular 21 (zoneless, standalone components). The
javascriptSdkentry hasangular: trueandreact: false. We also generate anadminNodeSdkfor Firebase Functions.Here are the full config files:
connector.yaml:
dataconnect.yaml:
The error occurs with
firebase-tools@15.12.0on both WSL2 (Linux 6.6.87) and GitHub Actions Ubuntu runners. Pinning tofirebase-tools@15.11.0(which usesdataconnect-emulator-3.3.0) works fine.Note: adding
clientCache: {}to the javascriptSdk config doesn't help — the emulator reads it (confirmed via-v=5logging) but still fails at the template level.aalej commentedon Apr 1, 2026
Thanks @m47een for the additional info! It looks like the issue occurs when generating code for Angular. I'll mark this issue as reproducible and share an mcve here.
stephenarosaj commentedon Apr 1, 2026
Thanks @m47een for the report and @aalej for the investigation! We have a fix for this coming - we'll update you when it releases :P
joehan commentedon Apr 9, 2026
Closing as fixed by #10290 - this will go out in today's release.