1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    6
    Vote Rating
    0
    possum is on a distinguished road

      0  

    Default Building an Example using Sencha SDK Tools

    Building an Example using Sencha SDK Tools


    Hi,

    I'm playing around with one of the examples in Ext JS 4.0.7, trying to customise it slightly. I modified one of the js files but now I want to regenerate classes.js so the changes are picked up and minified...

    I installed Sencha SDK Tools, when I navigate to the example project directory and execute:

    $ sencha build -p app.jsb3 -d .
    I see:

    Loading the Ext JS 4 MVC Demo - Simple Project
    Loaded 0 Packages
    Loaded 1 Builds
    [ERROR] File '/pathTo/ext-4.0.7-gpl/examples/app/simple/../../../../platform/src/util/Observable.js' is either not existent or unreadble

    and so on.

    Sorry if I am missing something obvious but not sure what is going on. Where should i be locating <pathTo>/platform/src/util/Observable.js. Or am I going about rebuilding this project the wrong way?

    Thanks.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    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


    That is saying that Ext.Loader doesn't have a correct path to Ext namespace.
    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
    Sencha User
    Join Date
    Sep 2011
    Posts
    6
    Vote Rating
    0
    possum is on a distinguished road

      0  

    Default


    Hi Mitchell,

    I already put the following code at the top of app.js:

    Ext.Loader.setPath('Ext', '../../../src');
    Ext.Loader.setConfig({enabled:true});

    I found this was necessary to get the example to load in my browser out of the box.

    Can you clarify why this was necessary (or if it was not what I should have done) and if this is what you are referring to when you say Ext Loader doesn't have a correct path to the Ext namespace.

    Thanks.

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    6
    Vote Rating
    0
    possum is on a distinguished road

      0  

    Default


    *bump*

    Anyone?

Thread Participants: 1