title: TypeScript error in undefined(undefined,undefined): Cannot find type definition file for 'component-emitter'
body: <p>After updating my Windows 10 via a scheduled Microsoft update (I don't really know if this is related, it might also be a coincidence), I started to run into this issue when running <code>yarn start</code>.</p>
  <pre><code>undefined
  TypeScript error in undefined(undefined,undefined):
  Cannot find type definition file for 'component-emitter'.
    The file is in the program because:
      Entry point for implicit type library 'component-emitter'  TS2688
  Failed to compile.
  </code></pre>
  <p>I found <a href="https://stackoverflow.com/questions/66335715/typescript-error-in-undefinedundefined-undefined-cannot-find-type-definition">this</a> similar post, which solved the problem by removing a package with the name @types/ in the package.json. I however have no such package.</p>
  <p>Here is my package.json file:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;web-localizer&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@react-hook/window-size&quot;: &quot;^3.0.7&quot;,
      &quot;@unform/core&quot;: &quot;^2.1.0&quot;,
      &quot;@unform/web&quot;: &quot;^2.1.0&quot;,
      &quot;axios&quot;: &quot;^0.19.2&quot;,
      &quot;date-fns&quot;: &quot;^2.14.0&quot;,
      &quot;polished&quot;: &quot;^3.5.2&quot;,
      &quot;react&quot;: &quot;^16.13.1&quot;,
      &quot;react-dom&quot;: &quot;^16.13.1&quot;,
      &quot;react-icons&quot;: &quot;^3.10.0&quot;,
      &quot;react-map-gl&quot;: &quot;^6.1.14&quot;,
      &quot;react-router-dom&quot;: &quot;^5.1.2&quot;,
      &quot;react-scripts&quot;: &quot;3.4.0&quot;,
      &quot;react-spinners&quot;: &quot;^0.9.0&quot;,
      &quot;react-spring&quot;: &quot;^8.0.27&quot;,
      &quot;styled-components&quot;: &quot;^5.1.0&quot;,
      &quot;typescript&quot;: &quot;^4.2.4&quot;,
      &quot;uuidv4&quot;: &quot;^6.0.8&quot;,
      &quot;yup&quot;: &quot;^0.28.5&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;test:coverage&quot;: &quot;react-scripts test --coverage --watchAll false&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: &quot;react-app&quot;
    },
    &quot;jest&quot;: {
      &quot;collectCoverageFrom&quot;: [
        &quot;src/pages/**/*.tsx&quot;,
        &quot;src/components/**/*.tsx&quot;,
        &quot;src/hooks/*.tsx&quot;,
        &quot;!src/hooks/intex.tsx&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^4.2.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^9.3.2&quot;,
      &quot;@testing-library/react-hooks&quot;: &quot;^3.3.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^7.1.2&quot;,
      &quot;@types/jest&quot;: &quot;^24.0.0&quot;,
      &quot;@types/node&quot;: &quot;^12.0.0&quot;,
      &quot;@types/react&quot;: &quot;^16.9.0&quot;,
      &quot;@types/react-dom&quot;: &quot;^16.9.0&quot;,
      &quot;@types/react-router-dom&quot;: &quot;^5.1.5&quot;,
      &quot;@types/react-star-rating-component&quot;: &quot;^1.4.0&quot;,
      &quot;@types/styled-components&quot;: &quot;^5.1.0&quot;,
      &quot;@types/yup&quot;: &quot;^0.28.0&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^2.29.0&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^2.29.0&quot;,
      &quot;axios-mock-adapter&quot;: &quot;^1.18.1&quot;,
      &quot;eslint&quot;: &quot;^6.8.0&quot;,
      &quot;eslint-config-airbnb&quot;: &quot;^18.1.0&quot;,
      &quot;eslint-config-prettier&quot;: &quot;^6.11.0&quot;,
      &quot;eslint-import-resolver-typescript&quot;: &quot;^2.0.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.20.2&quot;,
      &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.2.3&quot;,
      &quot;eslint-plugin-prettier&quot;: &quot;^3.1.3&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^7.19.0&quot;,
      &quot;eslint-plugin-react-hooks&quot;: &quot;^2.5.1&quot;,
      &quot;prettier&quot;: &quot;^2.0.5&quot;
    }
  }
  </code></pre>
  <p>And here is my tsconfig.json file:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es5&quot;,
      &quot;lib&quot;: [
        &quot;dom&quot;,
        &quot;dom.iterable&quot;,
        &quot;esnext&quot;
      ],
      &quot;allowJs&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;strict&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;module&quot;: &quot;esnext&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;resolveJsonModule&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;noEmit&quot;: true,
      &quot;jsx&quot;: &quot;react&quot;,
    },
    &quot;include&quot;: [
      &quot;src&quot;
    ],
    &quot;typeRoots&quot;: [
      &quot;../node_modules/@types&quot;,
      &quot;../@types&quot;
    ]
  }
  </code></pre>
  <p>I was receiving a warning of this sort before, but now I can't even build React apps anymore. This is making me unable to work, so I am a little desperate. If anyone has the slightest idea of what this might be, please let me know as soon as you can. I will provide any extra info that might be necessary.</p>