I have a node project written in typescript with graphQl and prisma-nexus.
the usage of prismaObjectType from import { prismaObjectType } from 'nexus-prisma'
produces a union type that is too complex to represent.
I can still use the project in dev but when I build it using tsc -p
the build fails with this error error TS2590: Expression produces a union type that is too complex to represent.
does anyone come across this issue ? any idea how to solve it or at least to ignore it when building the project ?
many thanks in advance.