ReactJS + CoffeeScript アプリケーションをローカルで実行しようとしていますが、ページが JS に読み込まれているように見えますが、コンソールにエラーが表示されて何も表示されません (空白の画面)。
Uncaught ReferenceError: Flux が定義されていません
これは、エラーが発生していると思われるコードのスニペットです。アプリケーションのノード モジュールの一部として Flux があります。ここで何をすることが期待されているのかわかりません。
ガイドしてください。
dispatcher = new Flux.Dispatcher();
module.exports = dispatcher;
},{}],5:[function(require,module,exports){
var Auth, LoggedInMixin, isEarlyPage, user;
Auth = require('./auth.coffee');
user = require('./stores/user.coffee');
isEarlyPage = function(path) {
return path.substr(1, 5) === 'early' || path.substr(1, 8) === 'settings';
};
module.exports = LoggedInMixin = {
statics: {
willTransitionTo: function(transition) {
if (!user.isLoggedIn()) {
console.error("User not logged in, redirecting.");
return Auth.redirect(transition);
}
if (!user.hasAccess() && !isEarlyPage(transition.path)) {
console.error("User does not have early access, redirecting.");
return transition.redirect('early');
}
}
}
};
},{"./auth.coffee":2,"./stores/user.coffee":11}],6:[function(require,module,exports){
var Constants, Nav, dispatcher, stores;
Constants = require('./constants.coffee');
Nav = require('./views/nav.cjsx');
dispatcher = require('./dispatcher.coffee');