title: Running a simple express app with ts-node-dev and get error: False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`
body: <p>I am new to typescript and express. I am trying to run the simplest express app using <code>ts-node-dev</code>, but get the following error.</p>
  <pre class="lang-bash prettyprint-override"><code>&gt; ./node_modules/.bin/ts-node-dev src/index.ts                                                 16:07:40
  [INFO] 16:07:42 ts-node-dev ver. 1.1.8 (using ts-node ver. 9.1.1, typescript ver. 4.7.2)
  Compilation error in /home/lht/microservice/ticketing/auth/src/index.ts
  Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.
      at Object.&lt;anonymous&gt; (/home/lht/microservice/ticketing/auth/src/index.ts:1:7)
      at Module._compile (internal/modules/cjs/loader.js:778:30)
      at Module._compile (/home/lht/microservice/ticketing/auth/node_modules/source-map-support/source-map-support.js:568:25)
      at Module.m._compile (/tmp/ts-node-dev-hook-8101223397369532.js:69:33)
      at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
      at require.extensions.(anonymous function) (/tmp/ts-node-dev-hook-8101223397369532.js:71:20)
      at Object.nodeDevHook [as .ts] (/home/lht/microservice/ticketing/auth/node_modules/ts-node-dev/lib/hook.js:63:13)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
  [ERROR] 16:07:42 Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.
  </code></pre>
  <p>The following is my <code>index.ts</code> file.</p>
  <pre class="lang-js prettyprint-override"><code>import express from &quot;express&quot;;
  import { json } from &quot;body-parser&quot;;
  
  const app = express();
  app.use(json());
  
  app.listen(3000, () =&gt; {
    console.log(&quot;Listening on port 3000!&quot;);
  });
  </code></pre>
  <p>This is my <code>package.json</code> file</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;name&quot;: &quot;auth&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;ts-node src/index.ts&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;devDependencies&quot;: {},
    &quot;dependencies&quot;: {
      &quot;@types/express&quot;: &quot;^4.17.13&quot;,
      &quot;@types/node&quot;: &quot;^17.0.35&quot;,
      &quot;express&quot;: &quot;^4.18.1&quot;,
      &quot;ts-node&quot;: &quot;^10.8.0&quot;,
      &quot;ts-node-dev&quot;: &quot;^1.1.8&quot;,
      &quot;typescript&quot;: &quot;^4.7.2&quot;
    }
  }
  </code></pre>
  <p>I wonder if there are some configurations that I am doing are wrong. Thanks in advance.</p>