title: Uncaught TypeError: Cannot read property 'oneOf' of undefined
body: <p>I am migrating my React project from v15 to v16. While doing that I am facing below error</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'oneOf' of undefined</p>
  </blockquote>
  
  <p>complete error below:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'oneOf' of undefined
  at Object.eval (alert.js?b73b:1209)
  at __webpack_require__ (alert.js?b73b:30)
  at Object.eval (alert.js?b73b:472)
  at Object.eval (alert.js?b73b:751)
  at __webpack_require__ (alert.js?b73b:30)
  at Object.eval (alert.js?b73b:81)
  at __webpack_require__ (alert.js?b73b:30)
  at Object.eval (alert.js?b73b:57)
  at __webpack_require__ (alert.js?b73b:30)
  at eval (alert.js?b73b:50)
  </code></pre>
  
  <p>After doing research in internet I found that the issue is something related to prop-types but not sure what I have to do to fix this issue. I am using prop types version <code>"prop-types": "^15.6.0"</code>. </p>