You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bower distributed delorean does not work with Require.js
First problem is require('events').EventEmitter:
module.exports = requirements = {
// DeLorean uses **Node.js native EventEmitter** for event emittion
EventEmitter: require('events').EventEmitter,
// and **es6-promise** for Deferred object management.
Promise: require('es6-promise').Promise
};
But the module is defined as:
module.exports = EventEmitter
So I think in the injector it should just be require('event') right?
Second problem is in the injector:
// This library needs to work for Browserify and also standalone.
// If DeLorean is defined, it means it's called from the browser, not
// the browserify.
if (typeof DeLorean !== 'undefined') {
for (var requirement in requirements) {
DeLorean.Flux.define(requirement, requirements[requirement]);
}
}
But when used in the browser with Require.js, DeLorean isundefined because:
I can work around it by just use delorean.js directly (without requirements.js) from the npm distribution (because it's not yet browserified). I then define my own module delorean.flux that does the DeLorean.Flux.define setup:
The bower distributed delorean does not work with Require.js
First problem is
require('events').EventEmitter
:But the module is defined as:
So I think in the injector it should just be
require('event')
right?Second problem is in the injector:
But when used in the browser with Require.js, DeLorean is
undefined
because:The text was updated successfully, but these errors were encountered: