Service binding config with the React template + local dev

I've been successfully using service bindings between back-end workers using the basic template and following the guidelines posted here: https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/ However, when using the React workers template, I can't seem to connect to service workers the same way when testing them locally. Do I need to configure them differently in wrangler.jsonc? (FYI each worker is in its own project/repo) The service binding entry in wrangler.jsonc is as follows: "services": [ { "binding": "PRODUCT_GATEWAY", "service": "bn-product-gateway", }, ], The error is: Worker "core:user:bn-app"'s binding "PRODUCT_GATEWAY" refers to a service "core:user:bn-product-gateway", but no such service is defined. It seems to be reproducible by creating a brand new React workers template and just adding a service binding in the format I did. Thanks.
Cloudflare Docs
Service bindings - RPC (WorkerEntrypoint) · Cloudflare Workers docs
Facilitate Worker-to-Worker communication via RPC.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?