Skip to content

Commit

Permalink
Merge pull request #37 from elek-io/fix-circular-dependency
Browse files Browse the repository at this point in the history
Potential fix for "TypeError: Cannot read properties of undefined (re…
  • Loading branch information
Nils-Kolvenbach authored Jun 27, 2024
2 parents 3991ebc + 08deff7 commit 699d79e
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 699d79e

Please sign in to comment.