TypeError after updating Effect library when deploying to Cloudflare
Oh dear, after updating effect I get errors when trying to deploy to cloudflare:
My code does this:
Any ideas?
My code does this:
Any ideas?
Uncaught TypeError: Cannot read properties of undefined (reading 'ast')
at getDefaultTypeLiteralAST
(file:///Users/.../node_modules/.pnpm/@effect+schema@0.75.5_effect@3.10.19/node_modules/@effect/schema/src/Schema.ts:2698:70)
in getDefaultTypeLiteralASTimport { Schema as S, AST } from "@effect/schema"
import { Either, Option } from "effect"
const overwriteTag = <Tag extends AST.LiteralValue>(tag: Tag) =>
S.optionalToRequired(S.Unknown, S.Literal(tag), {
decode: () => tag,
encode: () => Option.none()
}).pipe(S.withConstructorDefault(() => tag))