Matthew
Matthew
@dhruvsaxena1998 Probably, in your case it's better to use [`safeParse`](https://github.com/colinhacks/zod#safeparse). I tried to reproduce this in node project without svelte-kit, and this issue has gone.
> > I tried to reproduce this in node project without svelte-kit, and this issue has gone. > > Interesting, so you think it's a SvelteKit bug? Probably. Svelte imports...
> @MattMsh I tried to use `safeParse` > > ```ts > export const insertUserSchema = createInsertSchema(users, { > email: (schema) => schema.email.email(), > }); > const { success, data, error...