Uncaught (in promise) RangeError: Maximum call stack size exceeded

When using ArkType with svelte superforms, I'm getting the error:
justClone.js:14 Uncaught (in promise) RangeError: Maximum call stack size exceeded
at String.toString (<anonymous>)
at clone (justClone.js:14:30)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
justClone.js:14 Uncaught (in promise) RangeError: Maximum call stack size exceeded
at String.toString (<anonymous>)
at clone (justClone.js:14:30)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
at clone (justClone.js:34:27)
Not sure if this is an ArkType error or a superforms error as I can't see higher up the call stack. But I can confirm that it only happens for a field typed as '100 < number <= 3000' and doesn't occur for just 'number'
3 Replies
ssalbdivad
ssalbdivad3w ago
Not sure where justClone.js:34:27 comes from but it doesn't sound like ArkType so maybe it is trying to clone something cyclic?
Coda-Cola
Coda-ColaOP3w ago
Definitely nothing cyclic
ssalbdivad
ssalbdivad3w ago
But I mean internally it might be trying to clone something cyclic I don't know what justClone is doing so without that context it is hard to know what's going on Obviously if you see a case where that Type defined directly in ArkType somehow blows up, that would be very concerning But based on the stack trace, that doesn't seem to be the issue

Did you find this page helpful?