Importing moment into TypeScript project
<p>I am trying to use moment in my TypeScript project but when I use the line,</p>

<pre><code>import moment from 'moment';
</code></pre>

<p>I get the error:</p>

<blockquote>
  <p>'node_modules/moment/moment' has no default export.</p>
</blockquote>

<p>I have also tried,</p>

<pre><code>import moment from 'moment/src/moment';
</code></pre>

<p>but then I get the error:</p>

<blockquote>
  <p>'Cannot find module moment/src/moment'.</p>
</blockquote>

<p>Does anybody know a way of doing this? Thanks.</p>