Cannot file module '@cloudflare:workers'
Just created a new worker with wrangler and tried to
But I get an error from TypeScript that it can't find the module:
And I also get an error from wrangler when I try to deploy it:
Has anyone run into this issue before? I would appreciate the help, thanks!
import { WorkerEntrypoint } from '@cloudflare:workers' as shown on the docs site here: https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#example--build-your-first-service-binding-using-rpcBut I get an error from TypeScript that it can't find the module:
Cannot find module '@cloudflare:workers' or its corresponding type declarations. typescript (2307) [2, 34]And I also get an error from wrangler when I try to deploy it:
Has anyone run into this issue before? I would appreciate the help, thanks!
Cloudflare Docs
Facilitate Worker-to-Worker communication.

