prisma-examples icon indicating copy to clipboard operation
prisma-examples copied to clipboard

Typescript sample - prismaObjectType is not a function

Open jermorin opened this issue 7 years ago • 2 comments

Hi guys !

I've an issue with Typescript sample (graphql-auth) when I launch the service seems that the lib was updated but not the usage in the code

npm start

> graphql-auth@ start /Users/jermorin/Workspace/prisma-examples/typescript/graphql-auth
> ts-node-dev --no-notify --respawn --transpileOnly ./src

Using ts-node version 8.4.1, typescript version 3.6.3
TypeError: nexus_prisma_1.prismaObjectType is not a function

Do I forget something ?

Thanks in advance

jermorin avatar Sep 27 '19 03:09 jermorin

@Jermorin the nexus-prisma package has been updated in the last couple of days. As part of this update, they have dropped support for Prisma 1.0 (see here). To get things working again with the existing documentation, downgrade your version of nexus-prisma to 0.3.8.

tombarton avatar Sep 28 '19 12:09 tombarton

Hi ! Its exactly that I did after looking git logs, and obviously works better. Could be a good idea to downgrade it in the package.json to assure that when you git clone you don't have to downgrade manually as I did ?

Thanks for your response

jermorin avatar Sep 29 '19 05:09 jermorin