erquhartE
Convex Community3y ago
2 replies
erquhart

Error cause object not supported

We discussed this somewhere in Discord but I can't find it. I asked about being able to pass the new-ish second argument to the
Error
constructor so I can provide a structured data via the
cause
property. Someone followed up that this was now supported, but it still doesn't work because the Convex tsconfig has
ES2021
in the
compilerOptions.lib
array, whereas the new error signature requires at least
ES2022
.

Any chance
ES2022
can work for convex or will that break things? I see it's in the "don't touch this" section of the config.
Was this page helpful?