title: Having trouble setting up RequireJS
body: <p>I'm trying to get a basic require JS app working but I'm having some difficulties, could someone help please? I'm using Laravel as well.</p>
  
  <p>Include script</p>
  
  <pre><code>&lt;body&gt;
      @yield('content')
      &lt;script data-main="{{ asset('/js/main.js') }}" src="{{ asset('/js/require.js') }}"&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>config.js</p>
  
  <pre><code>require.config({
      baseUrl: "",
      paths: {
          "jquery": "jquery-2.1.3.min"
      }
  });
  </code></pre>
  
  <p>main.js</p>
  
  <pre><code>require(['config'], function() {
      define(['jquery'], function($) {
  
          $(document).ready(function()
          {
              alert("test");
          });
  
      });
  });
  </code></pre>
  
  <p>Folder directory structure:</p>
  
  <pre><code>/public
  -- /js
  -- -- jquery-2.1.3.min.js
  -- -- config.js
  -- -- main.js
  -- -- require.js
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>Uncaught Error: Mismatched anonymous define() module: function () {
          alert("test");
      }
  </code></pre>