Incorrect type for Promise: the Promise did not resolve to 'Response'.

I'm using the itty-router for routing
export default {
  fetch: async (request: Request, env: Env, context: Context) => {
    context.slack = new Slack(env.SLACK_APP_BOT_TOKEN);
    context.waitUntil(router.handle(request, env, context));
  },
};
Was this page helpful?