Jonathan
Jonathan
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Jonathan on 6/25/2023 in #questions
Linting errors when building on Vercel that I'm not getting on local machine
I am not yet marking this as the solution, because I am still confused, but... I happen to have found a fix in the meantime. I changed the build script in my package.json file. Before it runs next build it now first runs npx prisma generate . This seems to have fixed the linting errors. What I don't understand is what the linting errors in the server/db.ts file have to do with this fix. To me it seems I shouldn't need to generate the prisma client before the build to prevent those linting errors. As mentioned in my post, when hovering over the values in this file in my editor, there were no "any" types to be found.
2 replies