title: Backbone.js and Require.js: Mismatched anonymous define() module: function (_, Backbone) {
body: <p>I am new to using require.js and have the following app.js file as part of my backbone app:</p>
  
  <pre><code>require.config({
  baseUrl: "/js/",
  paths: {
      jquery: 'libs/jquery-2.1.0',
      underscore: 'libs/underscore-min',
      backbone: 'libs/backbone-min'
  },
  shim: {
      underscore: {
          exports: "_"
      },
      backbone: {
          deps: ['underscore', 'jquery'],
          exports: 'Backbone'
      },
  }
  });
  </code></pre>
  
  <p>In a  tag in my index.html file, I have placed the following:</p>
  
  <pre><code>define(['underscore', 'backbone'], function (_, Backbone) {
  </code></pre>
  
  <p>However, I am getting the following error my index.html file:</p>
  
  <pre><code>Uncaught ReferenceError: Backbone is not defined
  </code></pre>
  
  <p>And the following in my require.js file:</p>
  
  <pre><code>Uncaught Error: Mismatched anonymous define() module: function (_, Backbone) {
  </code></pre>
  
  <p>Any clues?</p>