Skip to content

Instantly share code, notes, and snippets.

@imolorhe
Created May 17, 2015 19:17
Show Gist options
  • Save imolorhe/0252b424c2cd5b903334 to your computer and use it in GitHub Desktop.
Save imolorhe/0252b424c2cd5b903334 to your computer and use it in GitHub Desktop.
Issue with Marionette and browserify
// in bootstrap.js
var $ = require('jquery');
var Backbone = require('backbone');
Backbone.$ = $;
// in app.js
var Marionette = require('backbone.marionette');
var _ = require('underscore');
// in main.js
require('./bootstrap');
var App = require('./app');
@imolorhe
Copy link
Author

Command in the terminal:

>browserify js/main.js -o js/bundled.js

Then when I open the page, I get that error: "cannot read property Deferred of undefined".

@imolorhe
Copy link
Author

Thanks to @sllanes, it works for me now. Just changed the version I am using from 1.2.0 back to 1.1.2. Apparently backbone 1.2.0 has some issues working with marionette and browserify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment