Cloudflare Workflows Binding Error in Astro Project

Getting this error when trying to set up Workflows with Astro + Cloudflare adapter:

Worker "workflows:workflows-starter"'s binding "USER_WORKFLOW" refers to service "core:user:" with a named entrypoint "MyWorkflow", but "core:user:" has no such named entrypoint.


#:schema node_modules/wrangler/config-schema.json
name = "workflows-starter"
main = "src/workflows/index.ts"
compatibility_date = "2024-10-22"

[[workflows]]
# name of your workflow
name = "workflows-starter"
# binding name env.MYWORKFLOW
binding = "MY_WORKFLOW"
# service = "workflows-starter"  # Add this line - should match the name
# this is class that extends the Workflow class in src/index.ts
class_name = "MyWorkflow"
image.png
Was this page helpful?