Mischa
09/21/2021, 7:10 AMerror TS2742: The inferred type of 'doStuff' cannot be named without a reference to 'myapp-repo/node_modules/.prisma/client'. This is likely not portable. A type annotation is necessary.
easily worked around but strange.
I'm trying to infer return types of functions doing prisma queries across packages so I guess that doesn't work anymoreJoël
Mischa
09/21/2021, 4:27 PMJoël
That usually means that we are not exported a type but it is used in a function definition or another type. My bet is that he’s retrieving such an instance (via inference) and that error pops up.