Results 1 to 5 of 5

Thread: While porting from Sencha 2.1 to 2.2

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    2
      1  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    29
    Answers
    1
    Vote Rating
    0
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha Premium User
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    723
    Answers
    42
    Vote Rating
    46
      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...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •