title: yup validation library TypeError: yup__WEBPACK_IMPORTED_MODULE_0__ is not a function
body: <p>I have installed yup and tried to validate my form with this, however when I try to import it to a file I get this error. I do not even run the handler, it just errors me out on page load. I use it with react.</p>
  <p>this is my code</p>
  <pre><code>import * as yup from &quot;yup&quot;;
  
  export const detailsSchema = yup.object().shape({
      cheeseType: yup()
          .string()
          .isRequired()
  });
  </code></pre>
  <p>I tried to rm -rf node_modules, I did not help.</p>
  <p>Thanks for helping me out.</p>