stewietheangel
stewietheangel
TTCTheo's Typesafe Cult
Created by stewietheangel on 5/17/2023 in #questions
Property 'prisma' does not exist on type 'object'
#0 9.578 Failed to compile. #0 9.578 #0 9.578 ./src/server/api/routers/example.ts:19:16 #0 9.578 Type error: Property 'prisma' does not exist on type 'object'. #0 9.578 #0 9.578 17 | #0 9.578 18 | getAll: publicProcedure.query(({ ctx }) => { #0 9.578 > 19 | return ctx.prisma.example.findMany(); #0 9.578 | ^ #0 9.578 20 | }), #0 9.578 21 | #0 9.578 22 | getSecretMessage: protectedProcedure.query(() => { #0 10.15 npm notice #0 10.15 npm notice New major version of npm available! 8.1.0 -> 9.6.6 #0 10.15 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.6 #0 10.15 npm notice Run npm install -g [email protected] to update! #0 10.15 npm notice ------ failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1 make: *** [run] Error 17 i get this error when building, this is from the boilerplate after generating pls help
9 replies