Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    62
    Vote Rating
    0
    stoertebeker is on a distinguished road

      0  

    Default Failed loading Application.js

    Failed loading Application.js


    Hi,
    I hope I learned my lesson and will follow the guidelines for reporting a bug.

    Cmd Version: 3.1.0.239
    OS: MacOS X 10.8.2
    Framework: 4.1.1a

    Description:
    I have build an app that runs w/o problems in a browser (Chrome). After compiling the app and creating the all-classes.js and a new index.html the app shows the following error messages in Chrome:
    Code:
    
    
    I checked and the problem is that the correct path would be ...ext/tt032013/ext/src/app/Application.js.

    Not sure why all-classes.js points to a wrong folder?

    And the main question is why does Chrome load .js files? I thought that now everything is included in all-classes.js?


    Thanks.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    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 mitchellsimoens has much to be proud of

      0  

    Default


    After the build it is still trying to load Ext.app.Application? This is incorrect, all the classes should be built into one file so soemthing is not requiring Ext.app.Application correctly.
    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
    Mar 2012
    Posts
    62
    Vote Rating
    0
    stoertebeker is on a distinguished road

      0  

    Default


    Maybe I wasn't clear enough. I am just doing the compile step.
    Code:
    sencha compile -classpath=app.ext/src pahe -yui -in ./index-in.html -out ./index.html
    Now I was expecting that the new index.html would work with the all-classes.js that was created.

  4. #4
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    755
    Vote Rating
    20
    Steffen Hiller will become famous soon enough

      0  

    Default


    I'm having the same issue, same Cmd Version, same Mac OS X version and same Framework version.

    The debug output of compile/build actually says at one point:
    Code:
    [DBG] Adding file /my/path/sdk/src/app/Application.js

  5. #5
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,069
    Vote Rating
    60
    dongryphon is a jewel in the rough dongryphon is a jewel in the rough dongryphon is a jewel in the rough

      0  

    Default


    Debugging via the forum is a fun art form... Need more tea leaves to read on this one.

    Can you copy/paste the exact command you ran from the console/terminal and the full log using "-debug" in a CODE block?

    Just looking at the one you posted:

    Code:
    sencha compile -classpath=app.ext/src pahe -yui -in ./index-in.html -out ./index.html
    The classpath looks wrong. It should probably have a comma not a dot between "app" and "ext/src" but that could just be a typo if you typed it here vs copy/pasted it here.
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"