title: script error - requireJS
body: <p>I am using requireJS to load <code>xchart.js</code> that depends on <code>d3.js</code>, and I keep on having this message error <code>Uncaught Error: Script error for: d3</code></p>
  
  <pre><code>    require({
          paths:{
              'd3': 'vendor/charts/d3.min',
              'charter': 'vendor/charts/xcharts.min'
          }
      },['js/vendor/charts/charter.js'],function(App){
          App.initial_charter();
      });
  </code></pre>
  
  <p>and in <code>js/vendor/charts/charter.js</code>, I put </p>
  
  <pre><code>define(['d3','charter'],function(){
          function initial_charter(){
              ...
  }return{
              initial_charter: initial_charter
          }
      }
  );
  </code></pre>
  
  <p>so I tried</p>
  
  <pre><code>require(['js/vendor/charts/d3.min.js'],function(){
          require({
              paths:{
                  'charter': 'vendor/charts/xcharts.min'
              }
          },['js/vendor/charts/charter.js'],function(App){
              App.initial_charter();
          });
      });
  </code></pre>
  
  <p>and I still get the same error message</p>
  
  <p>Update : I didn't change anything and now in my console <code>xChart is not defined</code>
  Rmk : I find <code>requireJS</code> really unstable, is it me or known ?</p>