title: Laravel: Include javascript code via min.js file "Uncaught ReferenceError: HelloWeek is not defined"
body: <p>I would like to include the great "helloweek" javascript code into my Laravel project. To add this, I've taken the <strong>helloweek.min.js</strong> file and placed it in the <strong>/public/js</strong> folder of my project. I've done the same thing for the css file (<strong>helloweek.min.css</strong>), it's in the <strong>/public/css</strong> folder.</p>
  
  <p>The files are included as follows:</p>
  
  <pre><code>&lt;link href="{{ asset('css/helloweek.min.css') }}" rel="stylesheet"&gt;
  &lt;script src="{{ asset('js/helloweek.min.js') }}" defer&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;        
  const myCalendar = new HelloWeek({
      selector: '.hello-week',
      lang: 'en',
      langFolder: '{{ url('/') }}/assets/lang/',
      format: 'YYYY-MM-DD',
      weekShort: true,
      monthShort: false,
      multiplePick: false,
      defaultDate: false,
      todayHighlight: true,
      disablePastDays: true,
      disabledDaysOfWeek: false,
      disableDates: false,
      weekStart: 1,
      daysHighlight: false,
      range: false,
      minDate: false,
      maxDate: false,
      nav: ['◀', '▶'],
      onLoad: () =&gt; { /** callback function */ },
      onChange: () =&gt; { /** callback function */ },
      onSelect: () =&gt; { /** callback function */ },
      onClear: () =&gt; { /** callback function */ }
  });&lt;/script&gt;
  </code></pre>
  
  <p>I can access both my files using "<a href="http://homestead.test/js/helloweek.min.js" rel="nofollow noreferrer">http://homestead.test/js/helloweek.min.js</a>" &amp; "<a href="http://homestead.test/css/helloweek.min.css" rel="nofollow noreferrer">http://homestead.test/css/helloweek.min.css</a>" and I see they are included in my webpage as well via the browser console.</p>
  
  <p>But I get the following <strong>error in the console: home:97 Uncaught ReferenceError: HelloWeek is not defined at home:97</strong></p>
  
  <p>As far as I know, it should mean that it's unable to find the library but (according to my very limited laravel knowledge) it seems correctly included.</p>
  
  <p>Does anyone have a solution for this? Thanks in advance!</p>