You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Blob and File Obj check would not work in Mini-Program enviroment #1555
, and notice your comment in code "Must be implemented in Node etc. as well as the browser to include here".
Why not add a check or add a getter func to safely access those object or throw something more helpful? The error like ReferenceError: Blob is not defined would not tell anybody the info like "MUST BE IMPLEMENTED" or the requirement list.
This is also an issue for me: I can't use Arktype inside a worker, in my case an audio worklet processor.
I was planning on using Arktype for validating messages to and from the worker. I'll use Zod instead for now, and ArkType for other usecases (maybe a wise choice here, as bundle size could be relevant for workers?)
This is also an issue for me: I can't use Arktype inside a worker, in my case an audio worklet processor. I was planning on using Arktype for validating messages to and from the worker. I'll use Zod instead for now, and ArkType for other usecases (maybe a wise choice here, as bundle size could be relevant for workers?)
Oh, for bundle size, Arktype may be a great lib to use. You can mock all the Object the Arktype use to skip the error.
TIP: Zod and Arktype all get JIT features which depend on new Function(...) JS feautre. Close them in some non-browser env to avoid troubles. @Andonvr
+1 here, when I embed my application code inside a raw V8/QuickJS engine, these reference produces error (in module/strict mode). The workaround is to add following statements at the top:
Activity
CornWorld commentedon Nov 26, 2025
I've already located the code at
arktype/ark/util/objectKinds.ts
Line 68 in f39e149
Why not add a check or add a getter func to safely access those object or throw something more helpful? The error like
ReferenceError: Blob is not definedwould not tell anybody the info like "MUST BE IMPLEMENTED" or the requirement list.Andonvr commentedon Dec 25, 2025
This is also an issue for me: I can't use Arktype inside a worker, in my case an audio worklet processor.
I was planning on using Arktype for validating messages to and from the worker. I'll use Zod instead for now, and ArkType for other usecases (maybe a wise choice here, as bundle size could be relevant for workers?)
CornWorld commentedon Dec 27, 2025
Oh, for bundle size, Arktype may be a great lib to use. You can mock all the Object the Arktype use to skip the error.
TIP: Zod and Arktype all get JIT features which depend on
new Function(...)JS feautre. Close them in some non-browser env to avoid troubles.@Andonvr
guyutongxue commentedon Apr 7, 2026
+1 here, when I embed my application code inside a raw V8/QuickJS engine, these reference produces error (in module/strict mode). The workaround is to add following statements at the top:
fix(util): import in runtimes that lack Blob, URL or the fetch globals
ssalbdivad commentedon Nov 18, 2026
Fixed in 3.0.0-beta.0 (#1728). Try it with
npm i arktype@next.