Hybrid View

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    13
    Vote Rating
    0
    rainierwolfcastle is on a distinguished road

      0  

    Default Answered: ST 2.1.0 beta3 and new Sencha Cmd Beta: generated app not working

    Answered: ST 2.1.0 beta3 and new Sencha Cmd Beta: generated app not working


    Hey guys,


    I downloaded ST 2.1.0 beta3 and installed the new Sencha Cmd Beta.


    I generated a new app using the sencha command as I always do:


    d:\xampp\htdocs\sencha-touch-2.1.0-beta3\sencha generate app mybeta3app ../mybeta3app


    When I'm starting the app in Chrome it's not working as expected, the console output looks like this:




    Failed to load resource: the server responded with a status of 404 (Not Found)
    Uncaught Error: [Ext.Loader] Failed loading './event/Dispatcher.js', please verify that the file exists
    Failed to load resource: the server responded with a status of 404 (Not Found)
    Uncaught Error: [Ext.Loader] Failed loading './event/publisher/Dom.js', please verify that the file exists




    Any ideas?

  2. Yes, I found the same.

    Firstly : if you look in the docs that came with the ST beta3 you'll find a clue :
    sencha-touch-2.1.0-beta3/docs/index.html#!/guide/getting_started

    Notice there is a debug path for EXT set in app.js in the docs which is not in the generated app.js : so add this at the top :

    //<debug>
    Ext.Loader.setPath({
    'Ext':'sdk/src'
    });
    //</debug>

    And then notice that the app build did not copy the sdk/src files over in any case, so copy those from the sencha-touch-2.1.0-beta3 folder.

    It then worked for me - sorry to be a bit vague, I was in a bit of a bad temper when this happened to me and I didn't take any notes at the time

  3. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    6
    Vote Rating
    2
    Answers
    1
    hayesjim is on a distinguished road

      1  

    Default


    Yes, I found the same.

    Firstly : if you look in the docs that came with the ST beta3 you'll find a clue :
    sencha-touch-2.1.0-beta3/docs/index.html#!/guide/getting_started

    Notice there is a debug path for EXT set in app.js in the docs which is not in the generated app.js : so add this at the top :

    //<debug>
    Ext.Loader.setPath({
    'Ext':'sdk/src'
    });
    //</debug>

    And then notice that the app build did not copy the sdk/src files over in any case, so copy those from the sencha-touch-2.1.0-beta3 folder.

    It then worked for me - sorry to be a bit vague, I was in a bit of a bad temper when this happened to me and I didn't take any notes at the time

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    13
    Vote Rating
    0
    rainierwolfcastle is on a distinguished road

      0  

    Default


    works!
    Thank you

  5. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    sean84 is on a distinguished road

      0  

    Default


    I think there is no need to copy the sdk folder.
    Use the folder named 'touch' which would be already available when you generate an app.

    Have you tried building your app?
    I get an 'classSystem is not defined' error...

  6. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    20
    Vote Rating
    1
    jgarifuna is on a distinguished road

      1  

    Default


    Thanks for the solution.

    I also noticed that the touch folder was copied when the app was generated so added the following at the top of app.js and it worked for me:

    Code:
    //<debug>
    Ext.Loader.setPath({
    'Ext':'touch/src'
    });
    //</debug>

  7. #6
    Sencha User
    Join Date
    Oct 2009
    Location
    Bangalore
    Posts
    19
    Vote Rating
    -4
    chetan.nr can only hope to improve

      0  

    Default Sencha Command Error when trying to create app using the latest "SenchaCmd-3.0.0.122"

    Sencha Command Error when trying to create app using the latest "SenchaCmd-3.0.0.122"


    Sencha Command Error when trying to create app using the latest "SenchaCmd-3.0.0.122" and
    "sencha-touch-2.1.0-b3"

    F:\apache-tomcat-6.0.10\webapps\sencha-touch-2.1.0-b3>sencha app create MyApp ../MyApp
    Sencha Cmd v3.0.0.122
    [ERROR] UNHANDLED EXCEPTION : No such property : 'create'

  8. #7
    Sencha User
    Join Date
    Aug 2012
    Posts
    18
    Vote Rating
    2
    Answers
    2
    gruese is on a distinguished road

      0  

    Default


    Quote Originally Posted by jgarifuna View Post
    Thanks for the solution.

    I also noticed that the touch folder was copied when the app was generated so added the following at the top of app.js and it worked for me:

    Code:
    //<debug>
    Ext.Loader.setPath({
    'Ext':'touch/src'
    });
    //</debug>
    This solution is better than the accepted answer. Copying the sdk folder is redundant: It's still there, has simply been renamed to "touch". So thank you for this.

    Still, this seems like a somewhat suboptimal situation, as it prevents out-of-the-box creation of a working Sencha Touch Hello World application. Hope it gets fixed in the next beta.