ricokahler / sanity-codegen

Generate TypeScript types from your Sanity.io schemas
sanity-codegen-dev.vercel.app
MIT License
270 stars 19 forks source link

Vercel Type error: Cannot find module 'sanity-codegen' or its corresponding type declarations. #268

Closed Emmahchinonso closed 2 years ago

Emmahchinonso commented 2 years ago

I'm trying to build my nextjs app on vercel and keep getting this build error.

Screenshot 2022-06-29 at 20 20 06

It builds fine locally but keeps failing on vercel, please can anyone help

Emmahchinonso commented 2 years ago

I don't know if the reason is because the sanity project is in a subfolder, it also fails to build on netlify with the exact same error