1. #1
    Sencha User raskri's Avatar
    Join Date
    Dec 2008
    Location
    Stavanger, Norway
    Posts
    73
    Vote Rating
    0
    raskri is on a distinguished road

      0  

    Default Using the command tool with this this UX is giving me errors

    What is the preferred way to include other/UX files to a sencha touch 2 app.

    In app.js I have:

    Code:
    Ext.Loader.setPath({
    'Ext': '../touch/src',   
    'MyApp': 'app',    
    'Ext.ux.touch.grid': 'ux/Ext.ux.touch.grid'
    });
    
    // in one of my panels i require the UX List...
    requires: ['Ext.ux.touch.grid.List'],...
    
    This works fine when I run in "dev" mode. But when I compile with Sencah Cmd(sencha app build production), I get Errors.

    App structure:
    /app.js
    app/ux/Ext.ux.touch.grid/List

    Getting the error:
    Code:
    com.sencha.exceptions.ExBuild: Failed to find any files for Ext.ux.touch.grid.List (x-app-build#273)   
    runAppBuild (x-app-build:273)   [anonymous] (x-app-build:545)   x_app_build (x-app-build:543)   <script> (anonymous:1)

    Any pointers are appreciated!

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,542
    Vote Rating
    1117
    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

    Cmd doesn't execute your code so the Ext.Loader call is only used for developing. For Cmd, you need to edit the .sencha/app/sencha.cfg and add the paths to the app.classpath (it's a comma-delimited value)
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    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
    Sencha User raskri's Avatar
    Join Date
    Dec 2008
    Location
    Stavanger, Norway
    Posts
    73
    Vote Rating
    0
    raskri is on a distinguished road

      0  

    Default Thats it!

    Works now! Thank you!

Thread Participants: 1