title: Formik and Yup : TypeError: Cannot read property 'object' of undefined
body: <p>I am new to React and was trying out formik with yup for the validation. I am currently getting the error below:</p>
  
  <blockquote>
    <p>TypeError: Cannot read property 'object' of undefined</p>
  </blockquote>
  
  <p>with this code:</p>
  
  <pre><code>validationSchema: Yup.object().shape({
    firstName: Yup.string().required()
  }),
  </code></pre>
  
  <p>I am using all the latest versions of formik,react and yup. The versions are </p>
  
  <blockquote>
    <p>"yup": "^0.25.1" "formik": "^0.11.11", "react": "^16.4.0",
    "react-dom": "^16.4.0",</p>
  </blockquote>
  
  <p>Could some one help me to resolve this issue?</p>
  
  <p>It is replicated here
  <a href="https://codesandbox.io/s/lrowpj8pq7" rel="noreferrer">https://codesandbox.io/s/lrowpj8pq7</a></p>
  
  <p>Thanks!</p>