how do i write a yup schema in typescript in nextjs?

There is nothing wrong with the code itself except from the import statement.


import Yup, { object } from ‘yup’


import * as Yup from “yup”;

You are accessing the object function through the Yup

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top