Skip to content

Commit

Permalink
Potential fix for "TypeError: Cannot read properties of undefined (re…
Browse files Browse the repository at this point in the history
…ading '_parseSync')"
  • Loading branch information
Nils-Kolvenbach committed Jun 27, 2024
1 parent 3991ebc commit 08deff7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-pumpkins-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@elek-io/shared': patch
---

Potential fix for "TypeError: Cannot read properties of undefined (reading '\_parseSync')"
2 changes: 1 addition & 1 deletion src/entrySchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type Entry = z.infer<typeof entryFileSchema> & {
)[];
};
export const entrySchema = entryFileSchema.extend({
values: z.array(resolvedValueSchema),
values: z.array(z.lazy(() => resolvedValueSchema)),
}) satisfies z.ZodType<Entry>;

export const entryExportSchema = entrySchema.extend({});
Expand Down

0 comments on commit 08deff7

Please sign in to comment.