ReferenceError: structuredClone is not defined
Seems I can't use structuredClone inside convex, but according to my convex tsconfig, there shouldn't be a problem, right?
2 Replies
Is Typescript not recognizing it or is it just failing at runtime?
it looks like convex's runtime doesn't implement
structuredClone. i'll put it on the list for us to implement. in the meantime you may be able to use a polyfill (like this https://github.com/ungap/structured-clone), or move it to a Node.js action, or find another way to copy it more manually