title: Magento2 not reading my requirejs-config.js
body: <p>I'm new to Magento2 and trying to figure out how RequireJS works in Magento.</p>
  
  <p>Here is my situation:</p>
  
  <p>I have following module:</p>
  
  <pre><code>app/code/Mymodule/Test/view/frontend/requirejs-config.js
  </code></pre>
  
  <p>Here is the content of this file:</p>
  
  <pre><code>var config = {
  map: {
      '*': {
          jQuery110: "Mymodule_Test/js/jquery-1.10.2",
          jqueryNoConflict: 'Mymodule_Test/js/jquery.no-conflict',
          flexslider: 'Mymodule_Test/js/jquery.flexslider-min',
          header: 'Mymodule_Test/js/store/header'
      }
  }
  };
  </code></pre>
  
  <p>My theme is at this location:</p>
  
  <pre><code>app/design/frontend/Mycompany/Basic
  </code></pre>
  
  <p>My Javascripts are at following location:</p>
  
  <pre><code>app/code/Mymodule/Test/view/frontend/web/js/jquery.no-conflict.js
  app/code/Mymodule/Test/view/frontend/web/js/jquery.flexslider-min.js
  app/code/Mymodule/Test/view/frontend/web/js/store/header.js
  </code></pre>
  
  <p>In the PHTML file:</p>
  
  <pre><code>app/code/Mymodule/Test/view/frontend/templates/home.phtml
  </code></pre>
  
  <p>I added the lines:</p>
  
  <pre><code>require(['jqueryNoConflict', 'flexslider'],function($, flexslider){
      (function($) {
          $(window).load(function () {
              $('.flexslider').flexslider();
          });
      })(jQuery);
  });
  </code></pre>
  
  <p>When I check my page in browser, I get 404 error with paths:</p>
  
  <pre><code>http://mag2.com.local/pub/static/frontend/Mycompany/Basic/en_US/flexslider.js
  </code></pre>
  
  <p>But if I change the require[] line to this:</p>
  
  <pre><code>require(['Mymodule_Test/js/jquery.no-conflict', 'Mymodule_Test/js/jquery.flexslider-min'],function($, flexslider){
      (function() {
          $(window).load(function () {
              $('.flexslider').flexslider();
          });
      })(jQuery);
  });
  </code></pre>
  
  <p>the files are loading.</p>
  
  <p>I also cleared the cache, my theme is correct, I executed the command:</p>
  
  <pre><code>php bin/magento setup:static-content:deploy
  </code></pre>
  
  <p>So, I am not able to figure out why my requirejs-config.js is not loading. I followed the documentation as well.</p>