title: TypeError: t is undefined
body: <p>I have decided to download all of my external CSS and JavaScript files rather than relying on CDNs. After I do this however, I'm coming across the following error for the daterangepicker.js plugin:</p>
  
  <blockquote>
    <p>TypeError: t is undefined</p>
  </blockquote>
  
  <p>I've researched the error and everything that I've run across suggests that moment.js is either not referenced at all or it is referenced after the daterangepicker.js file. However, my scripts are defined as such:</p>
  
  <pre><code>&lt;script src="js/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/popper.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.circliful.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/loader.js"&gt;&lt;/script&gt;
  &lt;script src="js/moment.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.daterangepicker.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have also ensured that there are no typos as indicated in the following screenshot:
  <a href="https://i.stack.imgur.com/nFfL1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nFfL1.png" alt="folder screenshot"></a></p>
  
  <p>I am also downloading the JavaScript files directly from the source's website rather than from a CDN hosted somewhere:</p>
  
  <ul>
  <li><a href="https://code.jquery.com/jquery-3.3.1.min.js" rel="nofollow noreferrer">jQuery.js</a>: </li>
  <li><a href="https://momentjs.com/downloads/moment-with-locales.js" rel="nofollow noreferrer">moment.js</a>:</li>
  <li><a href="https://github.com/longbill/jquery-date-range-picker/blob/master/dist/jquery.daterangepicker.min.js" rel="nofollow noreferrer">daterangepicker.js</a></li>
  </ul>
  
  <p>I don't understand what could be causing this issue and I'm completely at a loss as to how to resolve the issue. What is more frustrating is that if I try to switch back to using CDNs like before, the error persists.</p>
  
  <p><strong>Update</strong></p>
  
  <p>In response to Tyler Roper's request, here is the relevant JS code:</p>
  
  <pre><code>// Setup the Agency Report date-picker
  $('#date_range').dateRangePicker({
  autoClose: true,
  format: 'MMMM Do YYYY',
  showShortcuts: true,
  customShortcuts: [
  {
    name: 'this week',
    dates : function() {
      var start = moment().day(0).toDate();
      var end = moment().day(6).toDate();
      return [start,end];
    }
  },
  {
    name: 'this month',
    dates : function() {
      var start = moment().startOf('month').toDate();
      var end = moment().endOf('month').toDate();
      return [start,end];
    }
  },
  {
    name: 'this year',
    dates : function() {
      var start = moment().startOf('year').toDate();
      var end = moment().endOf('year').toDate();
      return [start,end];
    }
  }]
  }).data('dateRangePicker').setDateRange(moment().startOf('year').toDate(), moment().toDate());
  </code></pre>