RJR
Convex Community3y ago
72 replies
RJ

Math.random unsupported while evaluating schema

I'm working on my
Effect
wrapper library for Convex, and discovered through this work that importing a module which uses Math.random produces the following error when running convex dev:

400 Bad Request: Error: Hit an error while evaluating your schema:
Uncaught Error: Math.random unsupported when evaluating schema


1. Is there any way for me to work around this right now?
2. Would it be possible to treat Math.random in this context in the same way that it is treated in Convex functions?
Was this page helpful?