Why am I getting this error?

Hello everyone. The scheduler is working, but I receive this error in the terminal and also in the execution logs when I deploy. How do I solve this? Thank you!

Note: This is an example from the documentation:

const handler: ExportedHandler = {
  async scheduled(event, env, ctx) {
    console.log("cron processed");
  },
};
export default handler;
Screenshot_2024-02-04_at_18.19.39.png
Screenshot_2024-02-04_at_18.26.41.png
Was this page helpful?