sanity-io/sanity-template-nextjs-app-router-personal-website

Vercel build fails because of "parseBody"

BraveVN opened this issue · 0 comments

Describe the bug

Build error on Vercel of parseBody method: Type error: Expected 0 type arguments, but got 1.

To Reproduce

Steps to reproduce the behavior:

  1. Add revalidate feature to your project, in my situation, I just copy the whole file: https://github.com/sanity-io/nextjs-blog-cms-sanity-v3/blob/main/pages/api/revalidate.ts
  2. Deploy to Vercel to trigger the auto build
  3. See error: Type error: Expected 0 type arguments, but got 1.

Expected behavior

Build passes

Screenshots
image

Which versions of Sanity are you using?

@sanity/cli (global) 3.16.7 (latest: 3.18.1)

Additional context

This issue only appears on Vercel build. I test on local build with pnpm run build and it passes