de></pre>
<p>Finally, when launching node you need to include the `` flag with a setting of 'node'.</p>
<p><code>node --experimental-specifier-resolution=node dist/index.js</code></p>
<blockquote>
<p>Read more in the releated <a href="https://github.com/microsoft/TypeScript/issues/43329">TypeScript Issue</a>, <a href="https://github.com/microsoft/TypeScript/pull/45884">TS pull request Adding the functionality</a>, and the <a href="https://www.typescriptlang.org/tsconfig#moduleResolution">TS Docs</a>.</p>
</