Add moment to angular 2 (angular cli)
<p>I have followed the guid lines at the cli <a href="https://github.com/angular/angular-cli#3rd-party-library-installation" rel="nofollow noreferrer">github page</a>. But I am unable to make it work in my app.<br>
Here is what I did:</p>

<ol>
<li>installed moment: <code>npm install moment --save</code></li>
<li>installed moment ts typings: <code>npm install @types/moment --save</code></li>
<li>imported moment in one of my components: <code>import * as moment from 'moment';</code></li>
</ol>

<p>I am getting the following error:
<a href="https://i.stack.imgur.com/pqyzG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pqyzG.png" alt="img"></a>
</p>

<p>Any ideas? </p>