AndrewMohawk
AndrewMohawk
CDCloudflare Developers
Created by AndrewMohawk on 11/29/2023 in #workers-help
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
}
"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?
9 replies