title: False expression: Non-string value passed to `ts.resolveTypeReferenceDirective` in typescript
body: <p>When I try to run ts-node-dev./index.ts, I get the below error, I updated my typescript and ts-node-dev, ts-node but this error keeps on popping if I remove dependencies that have @types/XXXX(eg:@types/express) it is working fine.</p>
  <p>False expression: Non-string value passed to <code>ts.resolveTypeReferenceDirective</code>, likely by a wrapping package working with an outdated <code>resolveTypeReferenceDirectives</code> signature. This is probably not a problem in TS itself.</p>
  <pre><code>    &quot;dependencies&quot;: {
      &quot;ajv&quot;: &quot;^8.9.0&quot;,
      &quot;axios&quot;: &quot;^0.27.1&quot;,
      &quot;exceljs&quot;: &quot;^4.3.0&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;json2csv&quot;: &quot;^5.0.7&quot;,
      &quot;moment-timezone&quot;: &quot;^0.5.33&quot;,
      &quot;mysql&quot;: &quot;^2.18.1&quot;,
      &quot;mysql-utilities&quot;: &quot;^1.1.3&quot;,
      &quot;q&quot;: &quot;^1.5.1&quot;,
      &quot;ts-node&quot;: &quot;^10.8.0&quot;,
      &quot;ts-node-dev&quot;: &quot;^2.0.0&quot;,
      &quot;typescript&quot;: &quot;^4.7.2&quot;,
      &quot;winston&quot;: &quot;^3.3.3&quot;,
      &quot;winston-daily-rotate-file&quot;: &quot;^4.5.5&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@types/chai&quot;: &quot;^4.2.22&quot;,
      &quot;@types/express&quot;: &quot;^4.17.11&quot;,
      &quot;@types/jest&quot;: &quot;^27.4.0&quot;,
      &quot;@types/mocha&quot;: &quot;^9.0.0&quot;,
      &quot;@types/mysql&quot;: &quot;^2.15.20&quot;,
      &quot;@types/node&quot;: &quot;^15.6.1&quot;,
      &quot;chai&quot;: &quot;^4.3.4&quot;,
      &quot;jest&quot;: &quot;^27.4.7&quot;,
      &quot;mocha&quot;: &quot;^9.1.2&quot;,
      &quot;ts-jest&quot;: &quot;^27.1.3&quot;
    },
  </code></pre>