h3llo
Explore posts from serversPPrisma
•Created by h3llo on 4/11/2025 in #help-and-questions
prisma-client provider can't be used with multiple generators
When running the
generate
command I get an error:
This is my main schema:
The issue is caused by the generator json
since when I remove it, it works normally, but I want to use this feature for JSON field type-safety.4 replies
subscription tracked returns a 3-tuple to frontend instead of object
I am using
tracked
as per recommendation in https://trpc.io/docs/server/subscriptions#tracked like this:
It's properly typed on both frontend and backend, eg:
however what I actually receive on frontend is an 3-tuple [id, data, null].
I tried this both on versions "11.0.0-rc.666"
and next
and got the same results.3 replies