`wrangler dev --local` says I don't have a scheduled() function but I clearly have one
2 Replies
I just followed the instructions in the comment
I get the same error with the default worker it generates
this is a bug
✘ [ERROR] Received a ScheduledEvent but we lack a handler for ScheduledEvents (a.k.a. Cron Triggers). Did you remember to export a scheduled() function?
Reading the docs they mention running: npx wrangler dev --test-scheduled to test crons.