I am currently working on a node project in TypeScript using graphQl and prisma-nexus.
When utilizing the prismaObjectType from
import { prismaObjectType } from 'nexus-prisma'
, I encounter a complex union type that cannot be represented easily.
While I can still run the project in development mode, attempting to build it with tsc -p
results in the following error:
error TS2590: Expression produces a union type that is too complex to represent.
Has anyone else faced this issue before? Any suggestions on how to resolve it or potentially ignore it during the build process would be greatly appreciated.
Thank you in advance for your help!