title: TypeError: Cannot read property'ReactCurrentDispatcher'of undefined
body: <ol>
  <li>when I try to upgrade the React version , windows rise an error.</li>
  <li>the project is react, typescript and firebase for make authentication.</li>
  <li><code>package.json</code> file (dependencies,scripts)</li>
  </ol>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;my-app&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.1.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.1.10&quot;,
      &quot;@types/jest&quot;: &quot;^26.0.15&quot;,
      &quot;@types/node&quot;: &quot;^12.0.0&quot;,
      &quot;@types/react&quot;: &quot;^17.0.0&quot;,
      &quot;@types/react-dom&quot;: &quot;^17.0.0&quot;,
      &quot;@types/react-router-dom&quot;: &quot;^5.1.7&quot;,
      &quot;firebase&quot;: &quot;^8.2.7&quot;,
      &quot;form-group&quot;: &quot;^3.0.8&quot;,
      &quot;react&quot;: &quot;^15.3.0&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;react-router&quot;: &quot;^5.2.0&quot;,
      &quot;react-router-dom&quot;: &quot;^5.2.0&quot;,
      &quot;react-scripts&quot;: &quot;4.0.2&quot;,
      &quot;react-tinder-card&quot;: &quot;^1.3.1&quot;,
      &quot;reactstrap&quot;: &quot;^8.8.1&quot;,
      &quot;typescript&quot;: &quot;^4.1.2&quot;,
      &quot;web-vitals&quot;: &quot;^1.0.1&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    }
  }
  </code></pre>