Getting TypeScript error from .netlify directory generated when running netlify dev on a nextjs App

Working on a NextJs site

When I run netlify dev and visit the site, I get a type error from an edge function (next-dev which I don’t know where it comes from):

◈ Loaded edge function next-dev
error: TS2345 [ERROR]: Argument of type 'URL' is not assignable to parameter of type 'string'.
    return Response.redirect(url, 308)
                             ~~~
    at file:///home/kyljmn/Documents/work/metrobank-next/.netlify/edge-functions/edge-shared/utils.ts:266:30

TS2345 [ERROR]: Argument of type 'URL' is not assignable to parameter of type 'string'.
    return Response.redirect(url, 308)
                             ~~~
    at file:///home/kyljmn/Documents/work/metrobank-next/.netlify/edge-functions/edge-shared/utils.ts:271:30

I’ve tried downgrading to several previous version, but only got it to work at version 6.9.28, however one of the functions netlify functions I need isn’t working at that version.

Hi @kyljmn-mg,

I can see we’re troubleshooting this in the helpdesk.