Error de compilación de la aplicación Sencha

I'm trying to build my app with the sencha app build command but I get this error :

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

This is my notify() :

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

    xtype: 'panel',
    html: '<h2>' + title + '</h2><p>' + message + '</p>',
    styleHtmlContent: true

The view is reference like so

refs: { view: 'nearbyview' },

En los App.view.Nearby has ben added to the required views of another view.

I'm running the last version of the SDK tools.

preguntado el 22 de mayo de 12 a las 13:05

1 Respuestas

I finally found where the problem was coming form.

In a controller, I was using a this route :

  '':      'home',

I removed it and everything's working fine now.

contestado el 23 de mayo de 12 a las 19:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.