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
TypeError: Cannot read properties of undefined (reading 'optin')
at file://.../node_modules/zod/dist/esm/v4/core/util.js:253:30
at Array.filter (<anonymous>)
at Module.optionalKeys (file:/.../node_modules/zod/dist/esm/v4/core/util.js:252:31)
at file://.../node_modules/zod/dist/esm/v4/core/schemas.js:687:28
at get value (file://.../node_modules/zod/dist/esm/v4/core/util.js:34:31)
at inst._zod.parse (file://.../node_modules/zod/dist/esm/v4/core/schemas.js:781:39)
at Module.<anonymous> (file://.../node_modules/zod/dist/esm/v4/core/parse.js:33:32)
at inst.safeParse (file://.../node_modules/zod/dist/esm/v4/classic/schemas.js:52:46)
Node v22.14.0, Zod v3.25.3
In this example I have a schema constructed by extending an object with a record.
I get this runtime error on the
safeParse
call.May be related to #4338?
The text was updated successfully, but these errors were encountered: