title: TypeScript cannot find module decimal.js - but absolute path works
body: <p>I am using <code>typescript</code> with <code>node</code>. I can write this without any problems:</p>
  
  <pre><code>import * as $ from "jquery";
  </code></pre>
  
  <p>The definition file for <code>jquery</code> is in <code>node_modules/@types/jquery</code>. However, neither of the following works with the definition file for <code>decimal.js</code> being in <code>node_modules/decimal.js</code>:</p>
  
  <pre><code>import { Decimal } from "decimal";
  import { Decimal } from "decimal.js";
  </code></pre>
  
  <p>If I however include the file with its absolute path it works like a charm:</p>
  
  <pre><code>import { Decimal } from "/path/to/project/node_modules/decimal.js/decimal";
  </code></pre>
  
  <p>I'm using the latest version available in <code>npm</code> and these command line parameters:</p>
  
  <blockquote>
    <p>--removeComments --inlineSourceMap --inlineSources --allowSyntheticDefaultImports --charset UTF-8 --module amd --target ES6 --newLine LF --moduleResolution classic</p>
  </blockquote>