View Full Version : File all-classes.js is empty
27 Jan 2012, 4:00 PM
The command sencha create produces app.js and app-all.js, but it doesn't include my classes. How the SDK knows which classes to include? It was supposed to include all the necessary Extjs classes too?
30 Jan 2012, 1:46 PM
Looks like its a bug in Sencha SDK tools.
Instead of trying
sencha create jsb -a index.html -p app.jsb3
sencha create jsb -a http://localhost/helloext/index.html -p app.jsb3
it should work, it will creates all the dependent classes for your application.
30 Jan 2012, 6:24 PM
I had exactly your problem and was going to post a message to support you but I had an inspiration which solved the problem for me.
The solution for me has been to reference ext.js (not ext-all.js or one of the others) from index.html:
This forces the application to use individual classes from the src/ directory. Presumably this provides the 'create' command the information it needs to created a fully populated jsb3 file.
(This assumes you've copied the src/ folder under your application's extjs folder)
For good measure I enabled the loader though I don't think this is necessary.
// disableCaching : true //Comment this line out when you need to reload your Extjs js files
disableCaching : false //Comment this line out when you want files to be cached
Here's a good forum post (http://www.sencha.com/forum/showthread.php?142768-Using-the-SDK-tools) reviewing these issues.
31 Jan 2012, 8:09 AM
Glad to hear that your problem is solved. Looks like sencha SDK tools are not stable and It takes lot of effort & time to understand & trouble shoot the SDK tools. I think Sencha team should improve their documentation.
I am really upset with the example I am currently working I am trying to modify the sencha touch 2.0 examples & trying to rung the build command(sencha create jsb -a http://localhost/RecentSencha/examples/kitchensink/index-debug.html -p app.jsb3)
getting the below error:
[ERROR] Ext is not defined, please verify that the library is loaded properly on
the application's page
undefined:0 ReferenceError: Can't find variable: Ext
No documentation in Sencha how to use SDK tools with Sench Touch 2.0 example it is really a black box.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.