Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    494
    Vote Rating
    7
    Dumas is on a distinguished road

      0  

    Default How to include Ext.Direct into Sencha CMD 3 build process?

    How to include Ext.Direct into Sencha CMD 3 build process?


    Hello!

    My current app.json js config is
    Code:
    [{
        "path": "extjs/extjs.js"   /* first load the framework, we need this for the
                                      Ext.ns function in the Ext.Direct api*/
      }, {
        "path": "/direct-api.js",  /* now include the diret api */
        "remote": true
      }, {
        "path": "app.js",
        "bundle": true,            /* class dependencies are all concatenated 
        "update": "delta"             into this file when build */
     }]
    This works fine with the microloader, but when I make a production build the direct-api.js is executed before Sencha Touch is loaded and I get a Ext.ns is not a function error.

    How can I solve this? Is there maybe a nice way to pack Ext.Direct api into the app.js?

    Thanks
    Roland

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      -1  

    Default


    You mention before ExtJS is loaded, is this question really for Sencha Touch 2 as Ext JS 4 doesn't use app.json?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Sencha User
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    494
    Vote Rating
    7
    Dumas is on a distinguished road

      0  

    Default


    Sorry, this was a typo. I was referring to the Ext class. I'm taking about Sencha Touch 2.1.0 and the latest Sencha CMD