steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.65k stars 406 forks source link

🐛 fix(sitemap.ts): add type to user object in map function #36

Closed kodbilenadam closed 1 year ago

kodbilenadam commented 1 year ago

While running pnpm build build fails because of the error below.

image

The map function in the sitemap module was missing a type for the user object. This commit adds the type to the user object to prevent build errors.

vercel[bot] commented 1 year ago

@kodbilenadam is attempting to deploy a commit to the Elegance Team on Vercel.

A member of the Team first needs to authorize it.

steven-tey commented 1 year ago

hmmm that's odd, I thought prisma will auto infer types...lemme take a look

steven-tey commented 1 year ago

I can't repro this – do you have prisma generate defined as "prebuild" and "predev" steps in your package.json file?