1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    2
    simonv3 is on a distinguished road

      1  

    Default Unanswered: While porting from Sencha 2.1 to 2.2

    Unanswered: While porting from Sencha 2.1 to 2.2


    After porting from sencha 2.1 to sencha 2.2 alpha for some reason I am getting the following error + stack trace when calling
    Code:
    Ext.create('AppName.view.ViewName')
    :

    Code:
    Uncaught TypeError: Cannot call method 'substring' of undefined sencha-touch.js:18
    Ext.ClassManager.parseNamespace sencha-touch.js:18
    Ext.ClassManager.get sencha-touch.js:18
    Ext.ClassManager.instantiate sencha-touch.js:18
    Ext.ClassManager.instantiateByAlias sencha-touch.js:18
    Ext.apply.factory sencha-touch.js:18
    Ext.define.getLayout Container.js:576
    (anonymous function) sencha-touch.js:18
    Ext.define.doItemLayoutAdd Container.js:1071
    Ext.define.onItemAdd Container.js:1063
    Ext.define.onFirstItemAdd Container.js:562
    Ext.define.doAdd Container.js:714
    b.implement.callOverridden sencha-touch.js:18
    override.doAdd Container.js:1584
    Ext.define.add Container.js:683
    b.implement.callOverridden sencha-touch.js:18
    override.add Container.js:1545
    Ext.define.applyItems Container.js:510
    j sencha-touch.js:18
    (anonymous function) sencha-touch.js:18
    Ext.define.applyActiveItem Container.js:1167
    (anonymous function) Evented.js:23
    b.implement.initConfig sencha-touch.js:18
    Ext.define.constructor Component.js:962
    b.implement.callParent sencha-touch.js:18
    override.constructor Component.js:2768
    b.implement.callParent sencha-touch.js:18
    Ext.define.constructor Container.js:346
    b.implement.callOverridden sencha-touch.js:18
    override.constructor Container.js:1506
    f sencha-touch.js:18
    (anonymous function)
    Ext.ClassManager.instantiate sencha-touch.js:18
    (anonymous function) sencha-touch.js:18
    (anonymous function) app.js:67
    I tried using the xtype of the view, but that doesn't work at all, throwing a TypeError

    However, when I use sencha-touch-debug.js, no such error gets thrown.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,672
    Answers
    3354
    Vote Rating
    748
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Is Ext.Loader enabled in sencha-touch.js? If not then it won't try and load the view causing the error
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    29
    Answers
    1
    Vote Rating
    0
    binarious is on a distinguished road

      0  

    Default


    What does that mean? Where do we have to enable this? We are getting the same error with the final version of 2.2.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,672
    Answers
    3354
    Vote Rating
    748
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You need to edit the .sencha/app/sencha.cfg file to add the path to the app.classpath in the sencha.cfg file.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    698
    Answers
    41
    Vote Rating
    40
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    my 2 cents: rename your old project, then create a new project with V2.2, then copy your stuff into the new project...

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