'Error : TS2339 Property 'shape' does not exist on type 'typeof create'
import * as yup from 'yup';
const loginSchema = yup.object.shape({
email: yup.string().required('Email Required !'),
pswd: yup.string().required('Password Required !')
});
Error is in shape does not exist in yup.object whereas official documentation uses same.
Thanks in advance for help!
Solution 1:[1]
It was an typo yup.obejct.shape() It should be yup.object().shape().
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | kotharismeeet_Searce |
