Skip to content

Wrangler does not support email binding for sveltekit adapter #10996

@hadson172

Description

@hadson172

What versions & operating system are you using?

4.42.2

Please provide a link to a minimal reproduction

No response

Describe the Bug

When I define binding inside wrangler config:

	"send_email": [
		{
			"name": "SEND_EMAIL",
			"destination_address": "[email protected]"
		}
	]

Email binding is undefined, when i re-generate types (and properly detect emails binding) its still undefined.

When i took command from CF, created plain wroker:
pnpm create cloudflare@latest my-first-worker

Binding works as it should.
Currently I am using D1 db binding which it working without any issues (so not a problem with config on my side) but when it comes to email binding (and sveltekit adapter) its always undefined.

Additionaly, during build step when i am trying to import emails from CF i am getting this error as well:
Cannot find module 'cloudflare:email' imported from

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions