documentcloud/backbone — Issue #818: backbone failed to load underscore dependency
Author: madevelopers
Created: 2011-12-26 12:48:55+00:00
State: open

I'm not so sure about this but this quite solves my problem, loading backbone without getting errors.

I found it at line 35 of backbone source that states like this:
if (!_ && (typeof require !== 'undefined')) _ = require('underscore')._;

This code produced this error on the console:
_ is undefined
[Break On This Error] _.extend(Backbone.Model.prototype, Backbone.Events, {

I tried removing '._' and it solves the problem:
if (!_ && (typeof require !== 'undefined')) _ = require('underscore');

Not sure if this works 100% though but that gets rid of the error.