You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//explaining @DystopianDisco kkkk, I have the same problem... In order not to comment on this part, I used this alternative (The error stopped, but this does not confirm that it is correct!)
const schemanew: any = { ...schema }; //spread Operator (Get all properties) and added a type any
if ("_def" in schemanew && "innerType" in schemanew._def) { // if these properties exist;
schemanew._def.innerType as z.ZodAny;//I changed the type of the property and then passed it as an argument;
return getBaseSchema(schemanew._def.innerType);
}
//código
if ("innerType" in schema._def) {
const schemanew: any = { ...schema };
if ("_def" in schemanew && "innerType" in schemanew._def) {
schemanew._def.innerType as z.ZodAny;
return getBaseSchema(schemanew._def.innerType);
}
}
great component. works smoothly locally but but not deploying due to two issues in the auto-form.tsx
related to line 62 and 66:
"function getBaseSchema(schema: z.ZodAny): z.ZodAny {
if ("innerType" in schema._def) {
}
if ("schema" in schema._def) {
}
return schema;
}"
Building on Next.js 13 using Shadcn Taxonomy. Any ideas how to fix?
The text was updated successfully, but these errors were encountered: