Scheduled Worker (Cron Trigger) default Example fails?

If I try to follow the guide and do npm create cloudflare@latest and select Scheduled Worker (Cron Trigger) everything seems to work, I login with wrangler and it deploys, but then it gets stuck waiting for deployment to become available. When I go and look at the logs in the deployed default worker I see:

"exceptions": [
    {
      "name": "Error",
      "message": "Handler does not export a fetch() function.",
      "timestamp": 1701233459526
    }


Its not a great experience for onboarding devs 😢 Can someone take a look at it?
Was this page helpful?