Issue with supabase middleware.ts (auth with cookies)

I created github issue here - https://github.com/supabase/supabase/issues/18089 I bring attention to this issue because supabase docs was not tested for deploying on vercel - please vote up If you ever wrote auth with cookies with supbase - let me know how you set up your middleware.ts
GitHub
middleware.ts(7,22): error TS2339: Property 'getSession' does not e...
Bug report Expected behavior I got this error during build process on vercel middleware.ts(7,22): error TS2339: Property 'getSession' does not exist on type 'SupabaseAuthClient'. Bu...
1 Reply
Nikita
Nikita9mo ago
It was one of strangest errors ever I saw 12.10.2023 I tried to copy paste with supabase example npx create-next-app -e with-supabase and I just copy pasted !work (1st project) to work (2nd project) and 2nd project start working 13.10.2023 I tried undestand why this error occurs by creating branch from commit in !work (1st project) and it start working Its strange because that commit I deployed 12.10.2023 did't work and 13.10.2023 the same commit work (by work I mean throw no error when I deploy it on vercel)