1. #1
    Sencha User
    Join Date
    Oct 2008
    Posts
    27
    Vote Rating
    0
    JAD1951 is on a distinguished road

      0  

    Default TypeError: App is not a constructor

    TypeError: App is not a constructor


    My application works fine with ExtJS 4.1.3. With 4.2.0 and 4.2.1 I have a message : " TypeError: App is not a constructor http://localhost/extjs/ext-all-debug.js Line 7787 " This is an error [Stopper sur une erreur]

    In fact my code is broken at line 7787 inside ext-all-debug.js : Ext.app.Application.instance = new App();

    With ExtJS 4.1.3 an application is generated like this (line 6926):
    Ext.onReady(function() {
    new Ext.app.Application(config);
    });
    and it works fine.

    I start my application from Application.js :

    Ext.Loader.setConfig({enabled:true});

    Ext.application({
    name: '
    Motile',
    appFolder: '
    app',
    autoCreateViewport:
    true,

    requires: [
    'Motile.view.Viewport',
    'Motile.view.NavigationView'
    ,'Motile.view.ResourcesTemplatesView'

    ],


    controllers: [
    'ProjectTree',
    'ProjectsCatalog',
    'FrontController',
    'TemplatesTree',
    'StaffGrid',
    'EqpTreeGrid',
    'ResourcesGroups',
    'AbilitiesGridController',
    'ResourceAbilitiesGridController',
    'ItemsGridController'
    ]

    ,models: [
    'AbilitiesModel'
    ,'EqpModel'
    ,'ItemsModel'
    ,'ProjectModel'
    ,'ProjectsCatalog'
    ,'ResourceAbilitiesModel'
    ,'ResourcesGroupsModel'
    ,'StaffModel'
    ,'TemplatesModel'
    ]

    ,stores: [
    'AbilitiesStore'
    ,'EqpStore'
    ,'ItemsStore'
    ,'ProjectStore'
    ,'ProjectsCatalog'
    ,'ResourceAbilitiesStore'
    ,'ResourcesGroupsStore'
    ,'StaffStore'
    ,'TemplatesStore'
    ]
    });

  2. #2
    Sencha User
    Join Date
    Oct 2008
    Posts
    27
    Vote Rating
    0
    JAD1951 is on a distinguished road

      0  

    Default Now ExtJS 4.2.1 works

    Now ExtJS 4.2.1 works


    I founded : I added to each controller :

    models ['Motile.model.nameOfModel'],

    and my Viewport is O.K

  3. #3
    Sencha User
    Join Date
    Oct 2008
    Posts
    27
    Vote Rating
    0
    JAD1951 is on a distinguished road

      0  

    Default Strange behaviour

    Strange behaviour


    I have returned to my program and the error "App is not a constructor" appears.

  4. #4
    Sencha User
    Join Date
    Oct 2008
    Posts
    27
    Vote Rating
    0
    JAD1951 is on a distinguished road

      0  

    Default New with ExtJS 4.2.1 relatively to 4.1.1

    New with ExtJS 4.2.1 relatively to 4.1.1


    ExtJS 4.2.1 introduces a new model : 'Ext.data.TreeModel'.
    Now it's O.K.

  5. #5
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    102
    Vote Rating
    0
    qbert65536 is on a distinguished road

      0  

    Default


    These answers are all pretty unclear.

    My code worked fine with 4.1, upgrade to 4.2, and only in FireFox, I get the exact same error.

    Sencha, how do we fix this ?

  6. #6
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    102
    Vote Rating
    0
    qbert65536 is on a distinguished road

      0  

    Default


    Guys ?

  7. #7
    Sencha User
    Join Date
    Oct 2008
    Posts
    27
    Vote Rating
    0
    JAD1951 is on a distinguished road

      0  

    Default


    Always with Firefox : from time to time I have this mesage but when I restart my appli then it's O.K. I think that it is an initialisation problem.

  8. #8
    Ext JS Premium Member
    Join Date
    Jul 2009
    Posts
    102
    Vote Rating
    0
    qbert65536 is on a distinguished road

      0  

    Default


    I'm getting this _every_ time unfortunately, only on firefox, my application just won't run.

    Upgrading minor libraries completely breaks my application ? How is this even remotely acceptable from a commercial product?

  9. #9
    Sencha - Ext JS Dev Team
    Join Date
    May 2011
    Posts
    149
    Vote Rating
    56
    Phil Guerrant is a jewel in the rough Phil Guerrant is a jewel in the rough Phil Guerrant is a jewel in the rough

      0  

    Default


    Quote Originally Posted by qbert65536 View Post
    I'm getting this _every_ time unfortunately, only on firefox, my application just won't run.
    Any warnings in your console prior to the error occuring?

    Any way you could narrow it down to a small enough test case that you could attach to this thread so we can try and debug on our end?
    Phil Guerrant
    Ext JS - Development Team

  10. #10
    Sencha User
    Join Date
    Oct 2008
    Posts
    27
    Vote Rating
    0
    JAD1951 is on a distinguished road

      0  

    Default


    When I look under firedebug I find that in many cases not all controllers, stores, etc, are loaded/accessible. But my appli.goes fine.
    When error message goes then nothing appears before the crash : I restart my appli and all goes fine.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar