title: TypeError: _vm.moment is not a function in Vuejs
body: <p>I have a problem migrating to moment on Vuejs. </p>
  
  <p>After running <code>npm install vue-moment</code> and adding to my script:</p>
  
  <pre><code>&lt;script&gt;
  
    const moment = require('vue-moment');
  ...
  &lt;/script&gt;
  </code></pre>
  
  <p>I added this into my <code>&lt;template&gt;</code> :</p>
  
  <pre><code>&lt;h1&gt;{{moment('2017-12-20 11:00').fromNow()}}&lt;/h1&gt;
  </code></pre>
  
  <p>And I get this error:</p>
  
  <p>[Vue warn]: Error in render: "TypeError: _vm.moment is not a function"</p>