Tag: vercel

  • Next.js Vercel deployment doesn’t run codegen command

    Next.js Vercel deployment doesn’t run codegen command

    0 I created a React Next.js project with Typescript on pnpm and using graphql-codegen/typescript to create types. On vercel build, I get module not found error for import of generated types with codegen. On development server I generate types with ‘pnpm gen’ command manually from terminal. Probably while next build on vercel, it doesn’t run…

  • Prisma Appsync generator not working when run the npm run deploy command

    Prisma Appsync generator not working when run the npm run deploy command

    0 I’m using local mode successfully, but trying to deploy, I can’t complete the command npm run deploy. cdk synth never complete the step: RUN npm install –global [email protected] Step by step I’m test with nodejs versions 16 & 18     "aws-cdk": "2.99.1",     "aws-cdk-lib": "2.99.1" I’m testing default tutorial from https://prisma-appsync.vercel.app/quick-start/getting-started.html Anyone can…

  • NextJS 13.5 causes graphql schema errors

    NextJS 13.5 causes graphql schema errors

    0 After updating to NextJS 13.5 I started seeing these errors when deployed on Vercel (but works fine locally): Error: Schema must contain uniquely named types but contains multiple types named "h". at new GraphQLSchema (/var/task/node_modules/.pnpm/[email protected]/node_modules/graphql/type/schema.js:219:15) My init code is pretty straightforward in the serverless function: const schema = buildSchemaSync({ authChecker: UserAuthority, resolvers: […] });…