title: Moment.js: Uncaught TypeError: Cannot read property 'defineLocale' of undefined at moment.js:13
body: <p>When running the small html file below I see the following console log error:</p>
  
  <pre><code>moment.js:13 Uncaught TypeError: Cannot read property 'defineLocale' of undefined
      at moment.js:13
      at moment.js:9
      at moment.js:10
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width"&gt;
      &lt;title&gt;JS Bin&lt;/title&gt;
  
      &lt;script src="../scripts/libraries/moment.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  
  &lt;script&gt;
    var now = moment()
    console.log(now);
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have also tried replacing the reference to the local library with this CDN link: <code>https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/locale/af.js</code></p>
  
  <p>Anyone know what this error is?</p>