-
17 Mar 2013 6:59 AM #1
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:
I checked and the problem is that the correct path would be ...ext/tt032013/ext/src/app/Application.js.Code:- [COLOR=red !important]GET http://localhost/~ok/ext/tt032013/sr...=1363531356781 404 (Not Found) all-classes.js:1[/COLOR]
- [COLOR=red !important]Uncaught Error: [Ext.Loader] Failed loading 'http://localhost/~ok/ext/tt032013/sr...Application.js', please verify that the file exists all-classes.js:1[/COLOR]
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.
-
19 Mar 2013 7:15 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
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.
-
20 Mar 2013 1:25 AM #3
Maybe I wasn't clear enough. I am just doing the compile step.
Now I was expecting that the new index.html would work with the all-classes.js that was created.Code:sencha compile -classpath=app.ext/src pahe -yui -in ./index-in.html -out ./index.html
-
20 Mar 2013 2:35 AM #4
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
Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
20 Mar 2013 8:46 AM #5
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:
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.Code:sencha compile -classpath=app.ext/src pahe -yui -in ./index-in.html -out ./index.html
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!"
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote