title: Uncaught TypeError: Cannot read property 'EventAggregator' of undefined (Backbone, Marionette, RequireJS)
body: <p>Creating a new application with Backbone.Marionette, when I run the Express app and load the page I get an error in the console:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'EventAggregator' of undefined 
  backbone.marionette.js:1504
  </code></pre>
  
  <p>Showing that it's in the actual <code>marionette</code> library. I've look at that line:</p>
  
  <pre><code>Marionette.EventAggregator = Backbone.Wreqr.EventAggregator;
  </code></pre>
  
  <p>and am thinking that <code>wreqr</code> might be an additional library I have to add?</p>
  
  <p>Here's the code that creates the app:</p>
  
  <pre><code>require([
      'jquery', 
      'underscore', 
      'backbone', 
      'marionette'
  ], function( $, _, Backbone, Marionette ){
      MyApp = new Backbone.Marionette.Application();
  
      MyApp.addRegions({
          main_region: '#main_region'
      });
  
      MyApp.addInitializer( function(options) {
          var login_form_view = new LoginFormView();
      });
  });
  </code></pre>
  
  <p>and the require config that sets up the library locations:</p>
  
  <pre><code>// using RequireJS 1.0.7
      require.config({
          paths: {
              '$': 'libs/jquery-1.8.2-min',
              'underscore': 'libs/underscore-min', // AMD support
              'backbone': 'libs/backbone.min', // AMD support
              'bootstrap' : 'libs/bootstrap.min',
              'marionette' : 'libs/backbone.marionette', 
              'wreqr' : 'libs/backbone.wreqr',
              'templates': '../templates',
              'text': 'libs/require/text', 
              'login': 'views/user/login'
          }
      });
  </code></pre>
  
  <p>Anyone know what could be causing the error?</p>