martink
PPrisma
•Created by martink on 11/28/2024 in #help-and-questions
Working with decimal in NextJS
It's looking to me like the solution is really just not to use Decimal and use a fixed int type instead? e.g. "cents" or whatever precision I need?
6 replies
PPrisma
•Created by martink on 11/28/2024 in #help-and-questions
Working with decimal in NextJS
ah found more: https://github.com/prisma/prisma/issues/20627
6 replies
PPrisma
•Created by martink on 11/28/2024 in #help-and-questions
Working with decimal in NextJS
Ah thanks - I tried that (and a custom .$extends) and it seems to work, but I still get errors:
Only plain objects can be passed to Client Components from Server Components. Decimal objects are not supported.
or Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like nodejs.util.inspect.custom are not supported.
respectively6 replies