must be an instance of FormData (was object)
Hello!
This code:
Throws following error:
However,
formData
is instanceof FormData
and the log also says it's FormData
:
What am I doing wrong?27 Replies
What did you see that makes you sure it's an instance of
FormData
?
Try just creating it from new FormData()
instead and see if that worksI did
console.log(formData)
Did you try it with:
I need something I can actually repro
This throws the same error
Works for me
Aw :(
Well,
parse.number
works inside of this package, but now it's formData
I mean it would be one thing if it was unresolvable like before but you're saying this time that it's not an instanceof FormData but that's not the error I get
Can you just show me the error message
.toString()
like I did?You get that even if you just pass
new FormData()
directly to the validator?Yes, as per the first picture
I'm on
Node 20.14.0
Typescript 5.5.3
Arktype 2.0.0-beta.5
May as well try
beta.6
I can't repro it with those exact versionsI tried the latest version, also installed it at the root of the workspace, so that there would only be one installation of Arktype, still the same error
I tried my best to repro it you will have to link me a repo/branch I can clone