2012-05-22 82 views
1

我试图建立我与sencha app build命令应用程序,但我得到这个错误:煎茶应用程序生成错误

[ERROR] TypeError: 'undefined' is not an object Stack trace:
file:////public/m/app/controller/Nearby.js?_dc=1337687749349 : 62 : App.controller.Nearby#notify

这是我的通知():

notify: function(title, message){ 
    var view = this.getView(); 

    view.setItems({ 
    xtype: 'panel', 
    html: '<h2>' + title + '</h2><p>' + message + '</p>', 
    styleHtmlContent: true 
    }); 
} 

的看法是参考像这样

refs: { view: 'nearbyview' }, 

并且App.view.Nearby已将ben添加到另一个视图的所需视图。

我正在运行最新版本的SDK工具。

回答

0

我终于找到问题出现的地方。

在控制器,我使用的是这条路线:

routes:{ 
    '':  'home', 
} 

我删除了它,一切的现在工作的罚款。