Effect CommunityEC
Effect Community2y ago
11 replies
whatplan

TypeScript 5.5 Upgrade Causes `TypeId` Schema Errors Only During `tsc` Compilation

upgrading typescript to 5.5 is causing schema TypeId errors but weirdly only when running tsc not in the ts lsp

error TS2345: Argument of type 'Struct<{ text: $String; references: $Array<extend<Struct<{ file: Struct<{ title: PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>; path: $String; meta: PropertySignature<...>; source: Struct<...>; }>; meta: PropertySignature<...>; }>, Struct<...>>>; threadId: $String; messageId: $S...' is not assignable to parameter of type 'Schema<unknown, unknown, unknown>'.
Property '[TypeId]' is missing in type 'Struct<{ text: $String; references: $Array<extend<Struct<{ file: Struct<{ title: PropertySignature<"?:", string | undefined, never, "?:", string | undefined, never>; path: $String; meta: PropertySignature<...>; source: Struct<...>; }>; meta: PropertySignature<...>; }>, Struct<...>>>; threadId: $String; messageId: $S...' but required in type 'Schema<unknown, unknown, unknown>'.


not even sure where to begin with debugging
Was this page helpful?