title: NPM package cannot be used as a JSX Component - Type errors
body: <p>Ive been getting these strange type errors on my typescript project for certain packages.
  Ex:</p>
  <pre><code>'TimeAgo' cannot be used as a JSX component.
    Its instance type 'ReactTimeago&lt;keyof IntrinsicElements | ComponentType&lt;{}&gt;&gt;' is not a valid JSX element.
      The types returned by 'render()' are incompatible between these types.
        Type 'React.ReactNode' is not assignable to type 'import(&quot;/home/user/app/node_modules/@types/react-bootstrap-table-next/node_modules/@types/react/index&quot;).ReactNode'.
          Type '{}' is not assignable to type 'ReactNode'.
  </code></pre>
  <p>I don't get these type errors on my local windows machine but they keep occurring in my linux virtual machine.  I've deleted the project many times, cloned my repo and installed packages again in different versions of node and I still get the same type errors.</p>
  <p>Checked node 12.18.3, 16.13.1</p>
  <p>Here is some quick package json info:</p>
  <pre><code>&quot;react-timeago&quot;: &quot;^6.2.1&quot;,
  &quot;react-custom-scrollbars&quot;: &quot;^4.2.1&quot;,
  &quot;react-custom-scrollbars-2&quot;: &quot;^4.4.0&quot;,
  &quot;react&quot;: &quot;^17.0.2&quot;,
  &quot;next&quot;: &quot;^12.1.1&quot;,
  &quot;@types/react-custom-scrollbars&quot;: &quot;^4.0.10&quot;,
  &quot;@types/react-timeago&quot;: &quot;^4.1.3&quot;,
  &quot;@types/react&quot;: &quot;^17.0.44&quot;,
  &quot;typescript&quot;: &quot;^4.3.5&quot;
  &quot;@types/node&quot;: &quot;^14.18.12&quot;,
  </code></pre>
  <p>This happens on basic custom components:</p>
  <pre><code>MyTst.tsx
  import TimeAgo from &quot;react-timeago&quot;;
  
  const Mytst = () =&gt; {
    return (
      &lt;div&gt;
        &lt;TimeAgo date={&quot;02/02/2022&quot;} /&gt;
      &lt;/div&gt;
    );
  };
  
  export default Mytst;
  </code></pre>
  <p>I get this error for react-custom-scrollbars-2 as well.  There seems to be an issue with matching the types correctly between the library which contains the component and the @types files associated with them.  Anyone have any ideas on how to resolve these type errors?</p>