Vercel build fails because of "parseBody"
BraveVN opened this issue · 0 comments
BraveVN commented
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:
- 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
- Deploy to Vercel to trigger the auto build
- See error:
Type error: Expected 0 type arguments, but got 1.
Expected behavior
Build passes
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