我有兩個Ember 1.11項目正在使用簡單驗證通過Ember cli簡單驗證。兩者中最簡單的(基本hello世界應用)工作得很好......實際上它很好用(簡單的認證非常棒)。但是,另一個(最近升級的應用程序)有一些初始化錯誤。Ember CLI簡單驗證 - 無法讀取屬性'unde'
我的錯誤是:
Error while processing route: receiving.index Cannot read property 'on' of undefined TypeError: Cannot read property 'on' of undefined
而且它在ApplicationRouteMixin打破了該線路上beforeModel功能:
_this.get(Configuration.sessionPropertyName).on(event, function(error) {
Array.prototype.unshift.call(arguments, event);
var target = routeEntryComplete ? _this : transition;
target.send.apply(target, arguments);
});
的Configuration.sessionPropertyName是 「會話」,它顯然不能找到它。我沒有能夠在這個項目之外重新創建它,所以任何幫助表示讚賞。
山姆
您是否更新Simple Auth? – zeppelin 2015-03-31 17:34:34
我試過用0.7.3和master分支。這兩個錯誤仍然存在。 – sam 2015-03-31 18:16:27
您以前使用過什麼版本? – zeppelin 2015-03-31 19:48:50