Dynamic require of "cloudflare:workers" is not supported
I'm trying to create a cloudflare worker that is accessed via services by another worker. I followed the example here https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/
The worker fails to deploy with the error in the title. I aslo get this warning:
Service Worker wrangler toml:
Service worker code (too long for discord)
https://pastebin.com/VraghKaZ
The worker fails to deploy with the error in the title. I aslo get this warning:
▲ [WARNING] The entrypoint src/gemini.ts has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using "service-worker" format...Service Worker wrangler toml:
Service worker code (too long for discord)
https://pastebin.com/VraghKaZ
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
