saas-ui: Cannot find module '@saas-ui/forms/zod' or its corresponding type declarations
After upgrading to version 1.0.1 from 1.0.0-rc.15, I’m no longer able to import zodFieldResolver, zodResolver from @saas-ui/forms/zod.
This is how i was using it
// BaseForm.tsx
import { zodFieldResolver, zodResolver } from "@saas-ui/forms/zod";
import { Form as BaseForm } from "@saas-ui/react";
import { ZodTypeAny } from "zod";
BaseForm.getResolver = (schema: ZodTypeAny) => zodResolver(schema); // @hookform/resolvers
BaseForm.getFieldResolver = (schema: ZodTypeAny) => zodFieldResolver(schema); // AutoForm field resolver
export default BaseForm;
UPDATE: this issue always happens when I upgrade @saas-ui/react to the latest released version. Even if I revert back to the previous version after that, the problem still persists. So I delete node_modules and yarn.lock then I do a fresh installation of packages inside package.json
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (17 by maintainers)
Fixed in 1.0.2
Thanks again!